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 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .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 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .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 |
|---|---|---|
| IEnumerable<KeyValuePair<string, 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 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.2 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .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 |
| IEnumerable<KeyValuePair<string, 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 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.2 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .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 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .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 |
| IEnumerable<KeyValuePair<string, 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 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.2 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.14 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |