TabItem
class cAlgo.API Since 5.2
Represents the Tab item.
Environment behaviour
CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.
Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.
Definition
public class TabItem : Control
Namespace: cAlgo.API · Group: Controls · Inherits: Control, ControlBase
Examples
var tabItem = new TabItem
{
Header = new TextBlock { Text = "Account" },
Content = new TextBlock { Text = "Equity: " + Account.Equity }
};
var tabControl = new TabControl();
tabControl.AddTab(tabItem);
Chart.AddControl(tabControl);
header = TextBlock()
header.Text = "Account"
content = TextBlock()
content.Text = f"Equity: {api.Account.Equity}"
tabItem = TabItem()
tabItem.Header = header
tabItem.Content = content
tabControl = TabControl()
tabControl.AddTab(tabItem)
api.Chart.AddControl(tabControl)
Constructors
| Name | Description |
|---|---|
| TabItemDesktopCLICloud | Initializes a new instance of the TabItem class. |
Properties
| Name | Description |
|---|---|
ContentDesktopCLICloudControlBase | Gets or sets the content. |
HeaderDesktopCLICloudControlBase | Gets or sets the content. |
Inherited members
From Control: ForegroundColor, BackgroundColor, Padding, VerticalContentAlignment, HorizontalContentAlignment, FontWeight, FontStyle, FontFamily, FontSize
From ControlBase: ResetProperty, UniqueId, Style, Left, Top, Right, Bottom, Width, Height, MinWidth, MinHeight, MaxWidth, MaxHeight, IsEnabled, IsVisible, Opacity, Margin, VerticalAlignment, HorizontalAlignment, Dock, IsHitTestVisible