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

In This Topic
    GridStyleItem Class
    In This Topic
    Represents a grid saved in a style.
    Object Model
    GridStyleItem ClassCIMMapGrid Class
    Syntax
    Example
    How to search for grids in a style
    public Task<IList<GridStyleItem>> GetGridsFromStyleAsync(StyleProjectItem style, string searchString)
    {
      if (style == null)
        throw new System.ArgumentNullException();
    
      return QueuedTask.Run(() => style.SearchGrids(searchString));
    }
    Inheritance Hierarchy

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

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also