ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapSurroundStyleItem Class
Members Example

In This Topic
    MapSurroundStyleItem Class
    In This Topic
    Represents a map surround saved in a style.
    Object Model
    MapSurroundStyleItem ClassCIMMapSurround Class
    Syntax
    public class MapSurroundStyleItem : StyleItem, System.ComponentModel.INotifyPropertyChanged  
    Public Class MapSurroundStyleItem 
       Inherits StyleItem
       Implements System.ComponentModel.INotifyPropertyChanged 
    Example
    How to search for map surrounds in a style
    public Task<IList<MapSurroundStyleItem>> GetMapSurroundsFromStyleAsync(StyleProjectItem style, string searchString)
    {
      if (style == null)
        throw new System.ArgumentNullException();
    
      return QueuedTask.Run(() => style.SearchMapSurrounds(searchString));
    }
    Inheritance Hierarchy

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

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also