Version

AddLabel(String,String) Method

Adds an UltraWebToolbar label to the collection with the specified text caption and key.
Syntax
'Declaration
 
Public Overloads Function AddLabel( _
   ByVal text As String, _
   ByVal key As String _
) As TBLabel
public TBLabel AddLabel( 
   string text,
   string key
)

Parameters

text
The text caption displayed by the TBLabel.
key
The key value identifying the TBLabel, it should be unique across this UltraWebToolbar element.

Return Value

The newly created TBLabel instance, which developers may further customize.
Remarks

Developers should use this method to add a new, dynamically-created TBLabel to the left-end of the UltraWebToolbar element. The label's Text property will be initialized to the value given by the text argument.

Use the Insert(Int32,TBObject) method to insert a new instance of TBLabel before (to the left of) other Toolbar items. When calling Insert, the developer is responsible for creating the TBLabel instance beforehand, and setting its Text and Key properties afterwards.

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