Purpose The GxStyles sample demonstrates how to create custom GxObjects and a custom GxView. It introduces a new root node (called Style Gallery) that when expanded, contains a tree structure of styles. Individual styles can be previewed with a new custom view that is available under the Preview tab. How to use
See
How to use ArcGIS samples
for help on compiling, setting up the debugger, and running the sample.
If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders.
However, you will need to update the sample to point to the location of the data once you have extracted all the files.
Register the compiled .dll (that is, CustomRootObject_CS.dll) file. For more information, see "How to register COM components" in the following "See Also" section in this sample.
Start ArcCatalog. A new root node (called Style Gallery) shows.
Expand this node and select a style.
Preview the style by clicking the Preview tab.
clsGxStyleGallery.cs
Implementation of the clsGxStyleGallery class. This class represents the Style Gallery manager.
clsGxStyleGalleryClass.cs
Implementation of the clsGxStyleGalleryClass class. This class represents each style type.
clsGxStyleGalleryItem.cs
Implementation of the clsGxStyleGalleryItem class. This class represents each style.
clsGxStyleView.cs
Implementation of the clsGxStyleView class. This is the custom GxView used to preview styles.
FrmGxStyleView.cs
Form that contains a picture box used by GxStyleView for rendering previews of styles.
Download the
C# files
clsGxStyleGallery.vb
Implementation of the clsGxStyleGallery class. This class represents the Style Gallery manager.
clsGxStyleGalleryClass.vb
Implementation of the clsGxStyleGalleryClass class. This class represents each style type.
clsGxStyleGalleryItem.vb
Implementation of the clsGxStyleGalleryItem class. This class represents each style.
clsGxStyleView.vb
Implementation of the clsGxStyleView class. This is the custom GxView used to preview styles.
FrmGxStyleView.vb
Form that contains a picture box used by GxStyleView for rendering previews of styles.
Download the
VB.NET files
Download the files for all languages
See Also: How to register COM components
Development licensing
Deployment licensing
ArcGIS for Desktop Basic
ArcGIS for Desktop Basic
ArcGIS for Desktop Standard
ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced
ArcGIS for Desktop Advanced