ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LegendItemStyleItem Class / LegendItem Property
Example

In This Topic
    LegendItem Property
    In This Topic
    Gets or sets the ArcGIS.Core.CIM.CIMLegendItem of the legend item style item.
    Syntax
    public CIMLegendItem LegendItem {get; set;}
    Public Property LegendItem As CIMLegendItem
    Exceptions
    ExceptionDescription
    This property must be called within the lambda passed to QueuedTask.Run
    Example
    Get legend item from LegendItemStyleItem
    LegendItemStyleItem legendItemStyleItem = null;
    CIMLegendItem legendItem = await QueuedTask.Run<CIMLegendItem>(() =>
    {
      return legendItemStyleItem.LegendItem;
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also