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

LegendItemStyleItem Class
Represents a legend item saved in a style.
Object Model
LegendItemStyleItem ClassCIMLegendItem Class
Syntax
public class LegendItemStyleItem : StyleItem, 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

ArcGIS Pro version: 3 or higher.
See Also