ArcGIS Pro 3.7 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 
       Inherits StyleItem
       Implements System.ComponentModel.INotifyPropertyChanged 
    public class LegendItemStyleItem : StyleItem, System.ComponentModel.INotifyPropertyChanged  
    Example
    How to search for legend items in a style
    {
        //Search for legend items
        //Note: styleProjectItem was created above in the variable initialization section
        //Note: Needs QueuedTask to run
        styleProjectItem.SearchLegendItems("searchString");
    }
    Inheritance Hierarchy

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

    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also