| GridTabControlGetTabLabel Method |
Retrieves the TabLabel text associated with the specified
control.
Namespace: Stingray.GridAssembly: Stingray.GridTabControl (in Stingray.GridTabControl.dll) Version: 14.0.0.0
Syntax public virtual string GetTabLabel(
Control sheet
)
Public Overridable Function GetTabLabel (
sheet As Control
) As String
public:
virtual String^ GetTabLabel(
Control^ sheet
)
Parameters
- sheet
- Type: System.Windows.FormsControl
The Control for which to retrieve the
TabLabel text.
Return Value
Type:
StringThe
TabLabel text for the specified control.
Exceptions Exception | Condition |
---|
ArgumentException | Thrown when
sheet can not be found in the
GridTabControl's Controls collection. |
Remarks
This method enables you to retrieve the
TabLabel text for any
control that belongs to the
GridTabControl's
Controls
collection. To change the text that is displayed by a tab associated
with a control, use the
SetTabLabel(Control, String) method.
See Also