ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LegendItemStyleItem Class
Members Example

In This Topic
    LegendItemStyleItem Class
    In This Topic
    Represents a legend item saved in a style.
    Object Model
    LegendItemStyleItem ClassCIMLegendItem Class
    Syntax
    public class LegendItemStyleItem : StyleItem, System.ComponentModel.INotifyPropertyChanged  
    Public Class LegendItemStyleItem 
       Inherits StyleItem
       Implements System.ComponentModel.INotifyPropertyChanged 
    Example
    How to search for legend items in a style
    public Task<IList<LegendItemStyleItem>> GetLegendItemsFromStyleAsync(StyleProjectItem style, string searchString)
    {
      if (style == null)
        throw new System.ArgumentNullException();
    
      return QueuedTask.Run(() => style.SearchLegendItems(searchString));
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Framework.Contracts.PropertyChangedBase
          ArcGIS.Desktop.Mapping.StyleItem
             ArcGIS.Desktop.Mapping.LegendItemStyleItem

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also