Constructor Graphic
Graphic()
Initializes a new instance of the Graphic class.
Declaration
public Graphic()
Applies to
Platforms and versions
| 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 |
Relevant samples
Graphic(Geometry)
Initializes a new instance of the Graphic class and setting the 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 - 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 |
Relevant samples
Graphic(IEnumerable<KeyValuePair<String, Object>>)
Initializes a new instance of the Graphic class and setting the attributes.
Declaration
public Graphic(IEnumerable<KeyValuePair<string, object>> attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<KeyValuePair<System.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 - 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.14 |
Graphic(Geometry, IEnumerable<KeyValuePair<String, Object>>)
Initializes a new instance of the Graphic class and setting the geometry.
Declaration
public Graphic(Geometry geometry, IEnumerable<KeyValuePair<string, object>> attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| Geometry | geometry | Graphic geometry. Can be |
| IEnumerable<KeyValuePair<System.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 - 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.14 |
Graphic(Geometry, Symbol)
Initializes a new instance of the Graphic class and setting the 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 - 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 |
Relevant samples
Graphic(Geometry, IEnumerable<KeyValuePair<String, Object>>, Symbol)
Initializes a new instance of the Graphic class and setting the 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<System.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 - 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.14 |