GetItem() public method

public GetItem ( ESRI styleClass ) : IStyleGalleryItem
styleClass ESRI
return IStyleGalleryItem
        private void button1_Click(object sender, System.EventArgs e)
        {
            //Create a new SymbolForm
            Form2 symbolForm = new Form2();

            //Get the IStyleGalleryItem that has been selected in the SymbologyControl
            IStyleGalleryItem styleGalleryItem = symbolForm.GetItem(esriSymbologyStyleClass.esriStyleClassTextSymbols);

            if (styleGalleryItem == null)
            {
                return;
            }

            //Set the TextSymbol
            m_textSymbol = (ITextSymbol)styleGalleryItem.Item;

            //Release the SymbolForm
            symbolForm.Dispose();
        }
		private void button1_Click(object sender, System.EventArgs e)
		{
			//Create a new SymbolForm
			Form2 symbolForm = new Form2();

			//Get the IStyleGalleryItem that has been selected in the SymbologyControl
			IStyleGalleryItem styleGalleryItem = symbolForm.GetItem(esriSymbologyStyleClass.esriStyleClassTextSymbols);
			if (styleGalleryItem == null) return;
				
			//Set the TextSymbol
			m_textSymbol = (ITextSymbol) styleGalleryItem.Item;

			//Release the SymbolForm
			symbolForm.Dispose();
    
		}