Show / Hide Table of Contents

Constructor Graphic

Graphic()

Initializes a new instance of the Graphic class with a null geometry and symbol..

Declaration
public Graphic()

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
Relevant samples
Convex hull: Create a convex hull for a given set of points. The convex hull is a polygon with shortest perimeter that encloses a set of points. As a visual analogy, consider a set of points as nails in a board. The convex hull of the points would be like a rubber band stretched around the outermost nails.
Densify and generalize: A multipart geometry can be densified by adding interpolated points at regular intervals. Generalizing multipart geometry simplifies it while preserving its general shape. Densifying a multipart geometry adds more vertices at regular intervals.
Find service area: Find the service area within a network from a given point.
Geodesic operations: Calculate a geodesic path between two points and measure its distance.

Graphic(Geometry)

Initializes a new instance of the Graphic class with the given geometry.

Declaration
public Graphic(Geometry geometry)
Parameters
Type Name Description
Geometry geometry

Graphic geometry. Can be null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
Relevant samples
Buffer: Create a buffer around a map point and display the results as a `Graphic`
Edit and sync features: Synchronize offline edits with a feature service.

Graphic(IEnumerable<KeyValuePair<String, Object>>)

Initializes a new instance of the Graphic class with the given attributes.

Declaration
public Graphic(IEnumerable<KeyValuePair<string, object>> attributes)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>> attributes

Collection of attributes as key-value pairs. See Attributes for details on acceptable attribute values. Can be null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7

Graphic(Geometry, IEnumerable<KeyValuePair<String, Object>>)

Initializes a new instance of the Graphic class with the given geometry and attributes.

Declaration
public Graphic(Geometry geometry, IEnumerable<KeyValuePair<string, object>> attributes)
Parameters
Type Name Description
Geometry geometry

Graphic geometry. Can be null.

System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>> attributes

Collection of attributes as key-value pairs. See Attributes for details on acceptable attribute values. Can be null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7

Graphic(Geometry, Symbol)

Initializes a new instance of the Graphic class with the given geometry and symbol.

Declaration
public Graphic(Geometry geometry, Symbol symbol)
Parameters
Type Name Description
Geometry geometry

Graphic geometry. Can be null.

Symbol symbol

Symbol to draw the graphic. Can be null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
Relevant samples
Add graphics with symbols: Use a symbol style to display a graphic on a graphics overlay.
Buffer list: Generate multiple individual buffers or a single unioned buffer around multiple points.
Choose camera controller: Control the behavior of the camera in a scene.
Clip geometry: Clip a geometry with another geometry.

Graphic(Geometry, IEnumerable<KeyValuePair<String, Object>>, Symbol)

Initializes a new instance of the Graphic class with the given geometry, attributes, and symbol.

Declaration
public Graphic(Geometry geometry, IEnumerable<KeyValuePair<string, object>> attributes, Symbol symbol)
Parameters
Type Name Description
Geometry geometry

Graphic geometry. Can be null.

System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>> attributes

Collection of attributes as key-value pairs. See Attributes for details on acceptable attribute values. Can be null.

Symbol symbol

Symbol to draw the graphic. Can be null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.