DataRangeOrder property
Returns the range order displayed in the legend. Not valid for Column Chart, Series Column Chart, or Unsized Pie Chart maps. Read-only GeoDataRangeOrder.
GeoDataRangeOrder | Value | Description |
---|---|---|
geoRangeOrderDefault |
–1
|
Not valid for use with the DataRangeOrder property |
geoRangeOrderHighToLow |
2
|
Data displayed in high to low order |
geoRangeOrderLowToHigh |
1
|
Data displayed in low to high order |
Applies to
Collections: DataRanges
Syntax
object.DataRangeOrder
Parameters
Part | Description |
---|---|
object | Required. An expression that returns a DataRanges collection. |
Remarks
The order in which DataRange objects appear in the legend is not the same order as they are returned from the DataRanges collection (low to high).
Example
Sub GetInfoAboutDataMap()
Dim objApp As New mappoint.Application
Dim objDataMap As mappoint.DataMap
Dim objDataSet As mappoint.DataSet
'Set up application and objects to use
objApp.Visible = True
objApp.UserControl = True
'Let user create a data map
Set objDataMap = objApp.ActiveMap.DataSets.ShowDataMappingWizard()
'Get information about the data map
MsgBox "Order of data ranges in data map: " & _
objDataMap.DataRanges.DataRangeOrder
End Sub