Skip to content

AspTabIsSelectedChangedEventArgs

class cAlgo.API

DesktopCLICloud

Provides data for plugin ASP tab IsSelectedChanged event.

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

public class AspTabIsSelectedChangedEventArgs

Namespace: cAlgo.API · Group: EventArgs

Examples

protected override void OnStart()
{
    var tab = Asp.AddTab("My Tab");
    tab.Child = new TextBlock { Text = "Hello from plugin" };
    tab.IsSelectedChanged += OnTabIsSelectedChanged;
}

private void OnTabIsSelectedChanged(AspTabIsSelectedChangedEventArgs args)
{
    Print("Tab {0} is selected: {1}", args.AspTab.Title, args.AspTab.IsSelected);
}
def on_start(self):
    tab = api.Asp.AddTab("My Tab")
    text_block = TextBlock()
    text_block.Text = "Hello from plugin"
    tab.Child = text_block
    tab.IsSelectedChanged += self.on_tab_is_selected_changed

def on_tab_is_selected_changed(self, args):
    api.Print(f"Tab {args.AspTab.Title} is selected: {args.AspTab.IsSelected}")

Properties

Name Description
AspTabDesktopCLICloudAspTab ASP tab.

See also