HeaderPane
Main
Hide
Share Link
Print

OK Property, SftTaskDialogButton Class

Returns a new OK button.

Class: SftTaskDialogButton
Namespace: Softelvdm.SftStyleNET
Assembly: Softelvdm.SftStyleNET

Syntax

public static SftTaskDialogButton OK { get; }
Public ReadOnly Shared Property OK As SftTaskDialogButton

Value

A new instance of the OK button, equal to every other instance of it.

Comments

Returns a new OK button.

Examples

C# View entire sample code

                EnableLinks = true,
                Verification = new SftTaskDialogVerificationCheckBox("&Open the file after the export"),
                Expander = new SftTaskDialogExpander("Comma-separated files open in any spreadsheet program; PDF keeps the layout of the report."),
            };
            page.RadioButtons.Add("&Comma-separated values (.csv)").Checked = true;
            page.RadioButtons.Add("&PDF document");
            SftTaskDialogButton apply = new SftTaskDialogButton("&Apply") { AllowCloseDialog = false };
            page.Buttons.Add(apply);
            page.Buttons.Add(SftTaskDialogButton.OK);
            page.Buttons.Add(SftTaskDialogButton.Cancel);
            page.Buttons.Add(SftTaskDialogButton.Help);

            page.Created += (s, a) => DumpValues("page.Created", a);
            page.Destroyed += (s, a) => DumpValues("page.Destroyed", a);
            page.HelpRequest += (s, a) => DumpValues("page.HelpRequest", a);
            page.LinkClicked += (s, a) => DumpValues("page.LinkClicked", a);

VB.NET View entire sample code

        page.EnableLinks = True
        page.Verification = New SftTaskDialogVerificationCheckBox("&Open the file after the export")
        page.Expander = New SftTaskDialogExpander("Comma-separated files open in any spreadsheet program; PDF keeps the layout of the report.")
        page.RadioButtons.Add("&Comma-separated values (.csv)").Checked = True
        page.RadioButtons.Add("&PDF document")
        Dim apply As New SftTaskDialogButton("&Apply")
        apply.AllowCloseDialog = False
        page.Buttons.Add(apply)
        page.Buttons.Add(SftTaskDialogButton.OK)
        page.Buttons.Add(SftTaskDialogButton.Cancel)
        page.Buttons.Add(SftTaskDialogButton.Help)

        AddHandler page.Created, Sub(s, a) DumpValues("page.Created", a)
        AddHandler page.Destroyed, Sub(s, a) DumpValues("page.Destroyed", a)
        AddHandler page.HelpRequest, Sub(s, a) DumpValues("page.HelpRequest", a)
        AddHandler page.LinkClicked, Sub(s, a) DumpValues("page.LinkClicked", a)

See Also SftTaskDialogButton Class | Classes | SftStyle/NET 3.0