MapWinGIS:AxMap GetColorScheme
From MapWindow GIS
GetColorScheme
Returns the color scheme for the specified layer.
VB.NET Usage
Function GetColorScheme(LayerHandle As Integer) As Object
Parameters
|
LayerHandle | The layer handle of the layer for which the coloring scheme is required |
| Return Value | The color scheme for the specified layer. |
Sample Code
Private Sub ColorScheme()
Dim hnd As Integer
Dim clscheme As MapWinGIS.ShapefileColorScheme
'Get handle for layer 0
hnd = Map1.get_LayerHandle(0)
'Get color scheme for layer 0
clscheme = Map1.GetColorScheme(hnd)
End Sub
VB 6 Usage
Function GetColorScheme(LayerHandle As Long) As Object
Parameters
|
LayerHandle | The layer handle of the layer for which the coloring scheme is required. |
| Return Value | The color scheme for the specified layer. |
Sample Code
Private Sub ColorScheme()
Dim hnd As Long
Dim clscheme As MapWinGIS.ShapefileColorScheme
'Get handle for layer 0
hnd = Map1.LayerHandle(0)
'Get color scheme for layer 0
clscheme = Map1.GetColorScheme(hnd)
End Sub
















