Table of Contents

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

Name string

The tab's name, which Tabs finds it by.

Caption string

The text the tab shows.

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

string

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

bool

Name

The tab's name, which Tabs finds it by.

public string Name { get; init; }

Property Value

string

Tag

What a program keeps on the tab for its own use.

public string Tag { get; init; }

Property Value

string

ToolTipText

The text shown while the pointer rests on the tab; none where it is empty.

public string ToolTipText { get; init; }

Property Value

string

Visible

Whether the tab is shown.

public bool Visible { get; init; }

Property Value

bool