Method GetSymbol
GetSymbol(GeoElement)
Returns the symbol the renderer uses to represent the supplied GeoElement.
Declaration
public Symbol GetSymbol(GeoElement element)
Parameters
Type | Name | Description |
---|---|---|
GeoElement | element | The input GeoElement. |
Returns
Type | Description |
---|---|
Symbol | The Symbol used to represent the GeoElement. |
Remarks
If the renderer is a DictionaryRenderer and its associated DictionarySymbolStyle references
a style file hosted on ArcGIS Online or an ArcGIS Enterprise portal (also referred to as a web style),
this method returns null
. If the layer has rendered and the symbol is already drawn on the
view, this method returns a valid MultilayerSymbol. If you want to get the symbol before the
layer is rendered, use
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |
GetSymbol(GeoElement, Boolean)
Returns the symbol used to visualize the given GeoElement with override attributes from renderer.
Declaration
public Symbol GetSymbol(GeoElement element, bool applyAttributeOverrides)
Parameters
Type | Name | Description |
---|---|---|
GeoElement | element | The input GeoElement. |
System.Boolean | applyAttributeOverrides | A value indicating whether override attributes from renderer is applied. |
Returns
Type | Description |
---|---|
Symbol | The Symbol used to represent the GeoElement. |
Remarks
If applyAttributeOverrides
is set to true
, this method will get the symbol from the
renderer and override the symbol properties with the overrides available on the renderer. These include visual
variable size, color, opacity and rotation. If the override expression or attributes contain any information
not known to either the renderer or observation (such as "scale"), that override will not be applied. If the
override attributes are applied successfully, a symbol with overridden properties will be returned else the
original symbol will be returned.
If the renderer is a DictionaryRenderer and its associated DictionarySymbolStyle references
a style file hosted on ArcGIS Online or an ArcGIS Enterprise portal (also referred to as a web style),
this method returns null
. If the layer has rendered and the symbol is already drawn on the
view, this method returns a valid MultilayerSymbol. If you want to get the symbol before the
layer is rendered, use
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.5 - 200.5 |
Xamarin.Android | 100.5 - 100.15 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 200.5 |