Class LegendEntry
Class used to represent an entry in the Legend control.
Implements
Namespace: Esri.ArcGISRuntime.Toolkit.UI
Assembly: Esri.ArcGISRuntime.Toolkit.WinUI.dll
Syntax
public class LegendEntry : ILayerContentItem, INotifyPropertyChanged
Remarks
The Content property will contain the actual object it represents, mainly
Constructors
| Improve this Doc View SourceLegendEntry(Object)
Initializes a new instance of the LegendEntry class.
Declaration
public LegendEntry(object content)
Parameters
Type | Name | Description |
---|---|---|
Object | content | The object this entry represents, usually a |
Properties
| Improve this Doc View SourceContent
Gets the content that this entry represents, usually a
Declaration
public object Content { get; }
Property Value
Type | Description |
---|---|
Object |
Name
Gets the display name of the content
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Symbol
Gets the symbol of the content if it's a LegendInfo
Declaration
public Symbology.Symbol? Symbol { get; }
Property Value
Type | Description |
---|---|
Nullable<Symbology.Symbol> |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceOnPropertyChanged(String)
Raises the PropertyChanged event.
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
String | propertyName | name of the property changing |
Events
| Improve this Doc View SourcePropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
PropertyChangedEventHandler |