HOW TO
The brightness theme of a grid can be specified through Avenue using the GLegExt class on the GTheme legend.
Code:
'The following script shows how to set the brightness
'To test, load the Spatial Analyst Extension
'Add the Hillshd and Elevgrd themes to a View
'Make Elevgrd the first theme in the TOC.
'
theView = av.GetActiveDoc
thetheme = theView.Getthemes.Get(0) 'Elevgrd
theLegend = thetheme.GetLegend
theGLegExtension = theLegend.GetExtension(GLegExt)
theGLegExtension.SetbrightnessthemeView(theView)
theGLegExtension.SetbrightnessthemeName("hillshd")
theGLegExtension.SetbrightnessRange(4, 89)
thetheme.UpdateLegend
Get help from ArcGIS experts
Download the Esri Support App