Thetype exposes the following members.
Initializes a new instance of theclass
Initializes a new instance of theclass and setting the attributes.
Initializes a new instance of theclass and setting the geometry.
Initializes a new instance of theclass and setting the geometry and symbol.
|Graphic(Geometry, IEnumerableKeyValuePairString, Object)|
Initializes a new instance of theclass and setting the geometry.
|Graphic(Geometry, IEnumerableKeyValuePairString, Object, Symbol)|
Initializes a new instance of theclass and setting the geometry, attributes and symbol.
Updates the specified attributes.(Inherited from Feature.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Creates a new instance of aclass from json
Serves as a hash function for a particular type.(Inherited from Object.)
Gets the Type of the current instance.(Inherited from Object.)
Creates a shallow copy of the current Object.(Inherited from Object.)
Creates a json string representation of this object.
Returns a string that represents the current object.(Inherited from Object.)
Gets the attributes for the Graphic.(Overrides FeatureAttributes.)
Gets or sets the geometry.(Inherited from Feature.)
Gets or sets whether this graphic is selected.
Gets or sets whether this graphic is rendered on a map.
Gets or sets the symbol for the graphic.
Gets or sets the Z index this graphic is rendered at within the GraphicsLayer it belongs to.
Each graphic must contain an Esri.ArcGISRuntime.Geometry describing the location and the shape of the graphic.
A graphic can be associated with an Symbol which determines how the graphic looks. Alternatively, the graphics layer can be assigned an Renderer which determines the appearance of all graphics in the layer. Note, symbols associated with individual graphics take precedence over the symbols chosen by the renderer. The symbol used depends upon the geometry type associated with the graphic. A MarkerSymbol is used for MapPoint and Multipoint geometries, SimpleLineSymbol for Polyline geometries, and SimpleFillSymbol for Polygon geometries.
A graphic can contain a set of attributes (key-value pairs) providing more information about the graphic.
|This type is supported on the following ArcGIS Runtime .NET SDK platforms:|
|Hyperlink to Example||Description|
|Camera_SetMethods||Demonstrates navigating/animating between MapPoint Graphics with a Camera. Simultaneous changes of X, Y, Z, Pitch, and Heading during the animation is shown.|
|Editor_Sketching||Demonstrates sketching various geometric shapes on the map via the Editor.RequestShapeAsync method. The sketches are then added as Graphics in a GraphicsLayer and drawn on the map.|
|EditorConfiguration||Demonstrates sketching Polyline shapes on the map via the Editor.RequestShapeAsync method. The sketches are then added as Graphics in a GraphicsLayer and drawn on the map. Multiple versions of customizing the symbology of the Editor are shown.|
|EqualGeometries||Demonstrates the differences in comparing a few polygon geometries to via the Geometry.IsEqual and GeometryEngine.Equals Methods.|
|FindTask||Demonstrates using the Query.FindTask operation to search for text in attribute fields of an ArcGIS Server map service and display the features found as graphics in a GraphicsLayer.|
|GeocodeFullAddressInput||Demonstrates performing a geocode by submitting values for multiple address fields.|
|GeocodeSingleLineInput||Performs a single line geocode using either an online ArcGIS Locator service or a local Locator.|
|GeometryEngine_BufferWithUnion||Demonstrates using the powerful GeometryEngine local process to generate a single graphic buffer (unioned) based upon multiple points provided by user interaction with the map.|
|GeometryEngine_ConvexHull||Demonstrates using the powerful GeometryEngine local process to generate a convex hull graphic polygon based upon user specified mouse-clicks/taps on the map.|
|GeometryEngine_Difference_Intersection_Union||Demonstrates using the powerful GeometryEngine local process to perform the spatial analysis operations of Difference, Intersection, and Union on two input geometries.|
|GeometryEngine_TestingSpatialRelationships||Demonstrates using the powerful GeometryEngine local process to test various spatial relationships (Contains, Crosses, Disjoint, Equals, Intersects, Overlaps, Touches, Within) between two input geometries.|
|GetArea||Allows the user to draw a polygon on the map and calculate the area via several methods.|
|GraphicsLayer_Labeling||Demonstrates labeling city names where two AttributeLabelClass'es are used (one for smaller cities and one for larger ones).|
|GraphicsLayer_RenderingMode||Demonstrates setting the various GraphicsLayer.RenderingMode options and their effect on TextSymbols when the MapView is rotated.|
|GraphicsLayerWindow||Demonstrates various Graphics and GraphicsLayer related actions.|
|GraphicsOverlay||Demonstrates using the Query.FindTask operation to return county features in an ArcGIS Server map service and display the features found as Graphics in a GraphicsOverlay. The user can perform a MapViewTapped on the Graphics to perform a GraphicsOverlay.HitTestAsync to select features and display attribute information.|
|IdentifyParameter_DynamicLayerInfos||Demonstrates performing an Identify on a Dynamic Layer using the ESRI.ArcGISRuntime.Tasks.Query.IdentifyParameter.DynamicLayerInfos Property.|
|IdentifyTask||Demonstrates using the Query.IdentifyTask operation find a feature based upon it's geographic position in an ArcGIS Server map service and display it as a graphic in a GraphicsLayer.|
|PolygonBuilder_MakeIslands||Shows how to use the PolygonBuilder to turn multiple independent Polygons into a single Polygon (use case: grouping island Polygons together into one record).|
|PolygonFromScratch||Demonstrates creating a simple polygon, donut polygon, and multiple ring polygon via code-behind. An option to view coordinate information for each vertex in the polygons is provided.|
|RoutingPointToPoint||Demonstrates simple point to point routing between two input locations.|
|RoutingWithBarriers||Shows routing and re-routing around user defined point, polyline, and polygon barriers.|
|RoutingWithDirections||Interaction logic for RoutingWithDirections.xaml|
|SmoothGraphicAnimation||Animates a graphic smoothly between two user defined locations by calling the MapPoint.MoveTo method at regular intervals as defined by a DispatcherTimer. The distance the point is moved each time is calculated by a quintic easing function.|