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
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.0 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.15 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
Relevant samples
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  | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.0 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.15 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
Relevant samples
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  | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.14 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
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  | 
| 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  | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.14 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
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  | 
| Symbol | symbol | Symbol to draw the graphic. Can be  | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.0 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.15 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
Relevant samples
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  | 
| 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  | 
| Symbol | symbol | Symbol to draw the graphic. Can be  | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.14 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 |