ArcObjects Library Reference (Display)  

IStyleGallery Interface

Provides access to members modify the Style Gallery.

Product Availability

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

Description

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.

Members

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.

CoClasses that implement IStyleGallery

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

.NET Snippets

Open StyleManagerDialog | Open StyleReferencesDialog |

.NET Samples

Move a graphic along a path in ArcMap (Code Files: MapGraphicTrackExtension) |

.NET Related Topics

DisplayUI | Interacting with singleton objects | Releasing COM references |