Class Graphic
Instances of this class represent graphics. Graphics can be displayed
on the map through a Graphics
Implements
Namespace: Esri.ArcGISRuntime.UI
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class Graphic : GeoElement, INotifyPropertyChanged
Remarks
Each graphic must contain a Geometry describing the location and the shape of the graphic.
A graphic can be associated with a Symbol which determines how
the graphic looks. Alternatively, the Graphics
A graphic can contain a set of attributes (key-value pairs) providing more information about the graphic.
Constructors
Name | Description |
---|---|
Graphic() | Initializes a new instance of the Graphic class. |
Graphic(Geometry) | Initializes a new instance of the Graphic class and setting the geometry. |
Graphic(Geometry, Symbol) | Initializes a new instance of the Graphic class and setting the geometry and symbol. |
Graphic(Geometry, IEnumerable<KeyValuePair<String, Object>>) | Initializes a new instance of the Graphic class and setting the geometry. |
Graphic(Geometry, IEnumerable<KeyValuePair<String, Object>>, Symbol) | Initializes a new instance of the Graphic class and setting the geometry, attributes and symbol. |
Graphic(IEnumerable<KeyValuePair<String, Object>>) | Initializes a new instance of the Graphic class and setting the attributes. |
Properties
Name | Description |
---|---|
Geometry | Gets or sets the Geometry of this graphic. |
Graphics |
Gets the Graphics |
Is |
Gets or sets a value indicating whether this graphic is selected. |
Is |
Gets or sets a value indicating whether this graphic is rendered on a map. |
Symbol | Gets or sets the Symbol for this graphic. |
ZIndex | Gets or sets the draw order for graphics. Graphics with higher Z-index values are drawn on top of lower Z-index graphics. |
Name | Description |
---|---|
INotify |
Occurs when a property value changes. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |