DetailLevel property
Gets or sets the detail level of this MapFeature. Read/write GeoMapDetail enum.
Applies to
Objects: MapFeature
Syntax
object.DetailLevel
Parameters
Part |
Description |
---|---|
object |
Required. An expression that returns a MapFeature object. |
C# Example
private void SimplifyMap()
{
MapPoint.Map objMap = objApp.ActiveMap;
MapPoint.MapFeatures features = objMap.MapFeatures;
for (int i = 1; i <= features.Count; i++)
{
object index = i;
MapPoint.MapFeature feature = features.get_Item(ref index);
feature.DetailLevel = MapPoint.GeoMapDetail.geoNeverDisplay;
}
}
Visual Basic Example
Private Sub SimplifyMap()
Dim objMap As MapPoint.Map = objApp.ActiveMap
Dim features As MapPoint.MapFeatures = objMap.MapFeatures
For i As Integer = 1 To features.Count
Dim feature As MapPoint.MapFeature = features.Item(i)
feature.DetailLevel = MapPoint.GeoMapDetail.geoNeverDisplay
Next
End Sub