Class Tab
- Namespace
- RDCore.Forms.Model
- Assembly
- RDCore.Forms.dll
One tab of a TabStrip: an item of its Tabs, which a program reaches through Tabs. A tab is data, not a control: it holds no controls, and the TabStrip raises its events, with the tab's index.
public sealed record Tab : IEquatable<Tab>
- Inheritance
-
Tab
- Implements
- Inherited Members
Remarks
A tab's access key is a & in its Caption, as a control's is.
Constructors
Tab(string, string)
One tab of a TabStrip: an item of its Tabs, which a program reaches through Tabs. A tab is data, not a control: it holds no controls, and the TabStrip raises its events, with the tab's index.
public Tab(string Name, string Caption)
Parameters
Remarks
A tab's access key is a & in its Caption, as a control's is.
Properties
Caption
The text the tab shows.
public string Caption { get; init; }
Property Value
Enabled
Whether the tab can be selected. A disabled tab is shown dimmed, and a click on it selects nothing.
public bool Enabled { get; init; }
Property Value
Name
The tab's name, which Tabs finds it by.
public string Name { get; init; }
Property Value
Tag
What a program keeps on the tab for its own use.
public string Tag { get; init; }
Property Value
ToolTipText
The text shown while the pointer rests on the tab; none where it is empty.
public string ToolTipText { get; init; }
Property Value
Visible
Whether the tab is shown.
public bool Visible { get; init; }