Class TocItem
Class used to represent an entry in the Legend control.
Implements
Namespace: Esri.ArcGISRuntime.Toolkit.UI
Assembly: Esri.ArcGISRuntime.Toolkit.WPF.dll
Syntax
public class TocItem : INotifyPropertyChanged
Remarks
The Content property will contain the actual object it represents, mainly Layer, ILayerContent or LegendInfo.
Properties
| Name | Description |
|---|---|
| Children | Gets the child entries for this TOC Entry. |
| Content | Gets the content that this entry represents, usually a Layer, ILayerContent or LegendInfo. |
| Depth | Gets the depth of this item in the TreeView. |
| IsExpanded | Gets or sets a value indicating whether the item is expanded in the TreeView or not. |
| Layer | |
| LayerContent | Gets the ILayerContent that this TocItem belongs to. |
| Parent | Gets a reference to the parent of this tree item node. |
Methods
| Name | Description |
|---|---|
| Equals(object?) | Determines whether the specified object is equal to the current object. |
| GetHashCode() | Serves as the default hash function. |
| RefreshLegend() | Forces regeneration of the legend for this item. |
Events
| Name | Description |
|---|---|
| PropertyChanged | Occurs when a property value changes. |