This document is archived and information here might be outdated.  Recommended version.

IStyleGallery Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IS > IStyleGallery Interface
ArcGIS Developer Help

IStyleGallery Interface

Provides access to members modify the Style Gallery.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


IStyleGallery is used to access styles, add new items with AddItem, remove items with RemoveItem, make updates with UpdateItem and save your changes with SaveStyle. Styles provide storage for your colors, map elements, symbols, and properties of symbols.


Name Description
Method AddItem Adds an item to the target style file.
Read-only property Categories The categories within the given class.
Read-only property Class The class at the given index.
Read-only property ClassCount Number of classes in the Style Gallery.
Method Clear Removes all styles from the Style Gallery.
Method ImportStyle Imports a style from a file other than a .style file.
Read-only property Items The style items from the specified style file, in the specified class and category. The style set and category may be blank to return all items.
Method LoadStyle Loads a style from a file. If class is specified, only items in that class will be loaded.
Method RemoveItem Removes an item from the target style file.
Method SaveStyle Saves the specified style to a file. If class is specified, only items in that class will be saved.
Method UpdateItem Updates an existing item in target style file.

Classes that implement IStyleGallery

Classes Description
ServerStyleGallery The Server Style Gallery.
StyleGallery (esriFramework) The Style Gallery object.

See Also

IStyleGalleryItem Interface | IStyleGalleryStorage Interface

.NET Samples

Move a graphic along a path in ArcMap Custom Root Object (Style Gallery)