Show / Hide Table of Contents

Class Grid

Grid is a base class for MGRSGrid, USNGGrid, UTMGrid and LatitudeLongitudeGrid that represents the display of a coordinate system grid on the map view.

Inheritance
Object
Grid
LatitudeLongitudeGrid
MgrsGrid
UsngGrid
UtmGrid
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Object.ToString()
Namespace: Esri.ArcGISRuntime.UI
Assembly: Esri.ArcGISRuntime.dll
Syntax
public abstract class Grid
Remarks

It contains all of the common operations and properties that apply to displaying and working with the different grids currently supported. This includes toggling visibility and configuring layout and appearance preferences.

Properties

Name Description
IsLabelVisible

Gets or sets a value indicating whether grid's labels are visible.

IsVisible

Gets or sets a value indicating whether the grid is visible.

LabelOffset

Gets or sets the grid's text label offset from the edge of the map view in DIPS.

LabelPosition

Gets or sets the positioning of the grid's labels.

LevelCount

Gets the number of levels of resolution supported by the grid. The line and label style can be set for each of these resolution levels.

Methods

Name Description
GetLineSymbol(Int64)

Returns the line symbol used for the grid lines at the given resolution level.

GetTextSymbol(Int64)

Returns the text symbol used for the grid labels at the given resolution level.

SetLineSymbol(Int64, Symbol)

Sets the line symbol used for the grid lines at the given resolution level.

SetTextSymbol(Int64, Symbol)

Sets the text symbol used for the grid labels at the given resolution level.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.15

Relevant samples

Display grid: Display coordinate system grids including Latitude/Longitude, MGRS, UTM and USNG on a map view. Also, toggle label visibility and change the color of grid lines and grid labels.
In This Article
Back to top Copyright © 2022 Esri.