ArcObjects Library Reference  

StyleGallerySelection

About the Creating a toolbar of globe tools Sample

[C#]

StyleGallerySelection.cs

using ESRI.ArcGIS.Display;

namespace GlobeGraphicsToolbar
{
    public class StyleGallerySelection
    {
        private static IStyleGalleryItem _styleGalleryItem = null;

        public static void SetStyleGalleryItem(IStyleGalleryItem styleGalleryItem)
        {
            _styleGalleryItem = styleGalleryItem;
        }

        public static IStyleGalleryItem GetStyleGalleryItem()
        {
            return _styleGalleryItem;
        }
    }
}
[Visual Basic .NET]

StyleGallerySelection.vb

Imports Microsoft.VisualBasic
Imports System
Imports ESRI.ArcGIS.Display

Namespace GlobeGraphicsToolbar
	Public Class StyleGallerySelection
		Private Shared _styleGalleryItem As IStyleGalleryItem = Nothing

		Public Shared Sub SetStyleGalleryItem(ByVal styleGalleryItem As IStyleGalleryItem)
			_styleGalleryItem = styleGalleryItem
		End Sub

		Public Shared Function GetStyleGalleryItem() As IStyleGalleryItem
			Return _styleGalleryItem
		End Function
	End Class
End Namespace