Show / Hide Table of Contents

Class TocItem

Class used to represent an entry in the Legend control.

Inheritance
object
TocItem
Implements
INotifyPropertyChanged
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

Gets the Layer that this TocItem belongs to.

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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX