Type | Description | |||
CaptionFormatEnum | A CaptionFormatEnum expression that indicates whether the control uses built-in HTML tags. |
By default, the CaptionFormat property is exText. Use the CaptionFormat property to allow built-in HTML tags to the group's caption. Use the Caption property to access the group's caption. Use the AddItem method to add a new item to the group. The Caption property supports the following built-in HTML tags:
or <font ;31><sha 404040;5;0><fgcolor=FFFFFF>outline anti-aliasing</fgcolor></sha></font> gets:
The following VB sample adds an HTML item:
With ExplorerBar1.Groups(0) With .AddItem("This is an <fgcolor=000080><b>HTML</b></fgcolor> item.") .CaptionFormat = exHTML End With End With
The following C++ sample adds an HTML item:
COleVariant vtMissing; V_VT( &vtMissing ) = VT_ERROR; CGroup group = m_explorerbar.GetGroups().GetItem( COleVariant( long(0) ) ); CItem item = group.AddItem( "This is an <fgcolor=000080><b>HTML</b></fgcolor> item.", vtMissing ); item.SetCaptionFormat( 1 /*exHTML*/ );
The following VB.NET sample adds an HTML item:
With AxExplorerBar1.Groups(0) With .AddItem("This is an <fgcolor=000080><b>HTML</b></fgcolor> item.") .CaptionFormat = EXPLORERBARLib.CaptionFormatEnum.exHTML End With End With
The following C# sample adds an HTML item:
EXPLORERBARLib.Item item = axExplorerBar1.Groups[0].AddItem("This is an <fgcolor=000080><b>HTML</b></fgcolor> item.", null); item.CaptionFormat = EXPLORERBARLib.CaptionFormatEnum.exHTML;
The following VFP sample adds an HTML item:
With thisform.ExplorerBar1.Groups(0) With .AddItem("This is an <fgcolor=000080><b>HTML</b></fgcolor> item.") .CaptionFormat = 1 && exHTML EndWith EndWith