Skip to content

AspTab.Index

property · AspTab · cAlgo.API

DesktopCLICloud

Get / set index of current tab (Must be greater than zero).

Environment behaviour

CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.

Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.

Definition

int Index {get; set;}
aspTab.Index: int

Returns int

Examples

var tab = Asp.AddTab("My Tab");
tab.Index = 1;
Print("Tab index: {0}", tab.Index);
tab = api.Asp.AddTab("My Tab")
tab.Index = 1
api.Print(f"Tab index: {tab.Index}")