| GridTabControlSetTabLabel Method |
Associates a TabLabel text with the specified control.
Namespace: Stingray.GridAssembly: Stingray.GridTabControl (in Stingray.GridTabControl.dll) Version: 14.0.0.0
Syntax public virtual void SetTabLabel(
Control sheet,
string value
)
Public Overridable Sub SetTabLabel (
sheet As Control,
value As String
)
public:
virtual void SetTabLabel(
Control^ sheet,
String^ value
)
Parameters
- sheet
- Type: System.Windows.FormsControl
The Control with which to associate the
TabLabel text. - value
- Type: SystemString
The text to display as a tab label.
Exceptions Exception | Condition |
---|
ArgumentException | Thrown when
sheet can not be found in the
GridTabControl's Controls collection. |
Remarks
In addition to specifying the
TabLabel text to display for a
control's tab at design time, you can also use this method to modify
the
TabLabel text for a control at run time.
To determine the TabLabel text that is associated with a
control at run time, you can use the GetTabLabel(Control)
method.
See Also