Table of Contents

Class VBMsgBoxButtons

Namespace
RDCore.SDK.Runtime.Abstract.StdLib
Assembly
RDCore.SDK.dll

The buttons a MsgBox has, by its style (MS-VBAL 6.1.1.12 VbMsgBoxStyle, 6.1.1.11 VbMsgBoxResult): what whoever shows the dialog may answer it with.

public static class VBMsgBoxButtons
Inheritance
VBMsgBoxButtons
Inherited Members

Methods

ChoicesOf(VBMsgBoxStyle)

The buttons of a dialog of the style, in the order they are shown, as the answer each of them gives.

public static IReadOnlyList<VBMsgBoxResult> ChoicesOf(VBMsgBoxStyle style)

Parameters

style VBMsgBoxStyle

The style a program asked for.

Returns

IReadOnlyList<VBMsgBoxResult>

NameOf(VBMsgBoxStyle)

The name a program writes the set of buttons of the style with: vbOKOnly, vbYesNo, ...

public static string NameOf(VBMsgBoxStyle style)

Parameters

style VBMsgBoxStyle

The style a program asked for.

Returns

string

Of(VBMsgBoxStyle)

The set of buttons of a style: VBOKOnly through VBRetryCancel. A value that names none of them is VBOKOnly.

public static VBMsgBoxStyle Of(VBMsgBoxStyle style)

Parameters

style VBMsgBoxStyle

The style a program asked for: the buttons, the icon, the default button and the modality, summed.

Returns

VBMsgBoxStyle