'Declaration Public ReadOnly Property Buttons As CheckItems
public CheckItems Buttons {get;}
This property yields a CheckItems collection of TBarButton instances that are current members of this button group. Applications should access any of the buttons which belong to this group through this property, either by indexing it with the ordinal position of a button, or (preferably) by using one of the FromKeyButton methods of the collection object.
For example, the following VB.NET statement would return the first button in the group:
Dim myButton As TBarButton = myGroup.Buttons(0) ' Where myGroup is a TBButtonGroup object.
A corresponding indexing statement in C# looks like this:
TBarButton myButton = myGroup.Buttons[0]; // Where myGroup is a TBButtonGroup object.
Developers are strongly encouraged, however, to give their buttons unique Key values. This enables them to flexibly locate buttons even after the contents of a collection have been rearranged. The following VB.NET statement demonstrates how to use the FromKeyButton method to do so:
Dim myButton As TBarButton = myGroup.Buttons.FromKeyButton( "MyButtonKey")
In C#, a developer might write the following statement in this manner:
TBarButton myButton = myGroup.Buttons.FromKeyButton( "MyButtonKey");
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2