Version

Add(TBarButton) Method

Adds a button to this collection.
Syntax
'Declaration
 
Public Overloads Function Add( _
   ByVal button As TBarButton _
) As TBarButton
public TBarButton Add( 
   TBarButton button
)

Parameters

button
The button to be added.

Return Value

The button which was added.
Remarks

Developers can call this method when they have previously created a TBarButton and wish to add it to this button group's collection. Prior to setting any properties on a dynamically-created instance of TBarButton, the developer must assign it to a collection. It's only at this point that viewstate-tracking can be performed.

When a button is added to the collection, it is linked to the TBButtonGroup which parents this collection.

Requirements

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

See Also