Gets or sets a string representation of the minimum scale.
Syntax
Visual Basic (Declaration) | |
---|
Public Property MinScale As String |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As AcetateElement
Dim value As String
instance.MinScale = value
value = instance.MinScale |
C# | |
---|
public string MinScale {get; set;} |
Example
This sample creates an acetate element, adds it to an acetate layer, sets the mininum and maximum scales for the acetate layer, and adds the acetate layer to the map.
C# | Copy Code |
---|
// Create the point and symbol for the acetate graphic
Point pt = new Point(75.0, 45.0);
SimpleMarkerSymbol symbol = new SimpleMarkerSymbol(Drawing.Color.Blue, 15, MarkerSymbolType.Circle);
// Create the acetate graphic
GeometryElement acetatePt = new GeometryElement(AcetateUnits.Database, pt, symbol);
// Create the acetate layer and set minscale and maxscale
AcetateLayer acetateLayer = new AcetateLayer("mapGraphics");
acetateLayer.MinScale = "1:1000000";
acetateLayer.MaxScale = "1:20000000";
// Add acetate layer to the map
acetateLayer.AcetateElements.Add(acetatePt);
mapView.Layers.Add(acetateLayer); |
Visual Basic | Copy Code |
---|
' Create the point and symbol for the acetate graphic
Dim pt As New Point(75.0, 45.0)
Dim symbol As New SimpleMarkerSymbol(Drawing.Color.Blue, 15, MarkerSymbolType.Circle)
' Create the acetate graphic
Dim acetatePt As New GeometryElement(AcetateUnits.Database, pt, symbol)
' Create the acetate layer and set minscale and maxscale
Dim acetateLayer As New AcetateLayer("mapGraphics")
acetateLayer.MinScale = "1:1000000"
acetateLayer.MaxScale = "1:20000000"
' Add acetate layer to the map
acetateLayer.AcetateElements.Add(acetatePt)
mapView.Layers.Add(acetateLayer) |
Remarks
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also