Class VBMsgBoxButtons
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
styleVBMsgBoxStyleThe style a program asked for.
Returns
NameOf(VBMsgBoxStyle)
The name a program writes the set of buttons of the style with: vbOKOnly, vbYesNo, ...
public static string NameOf(VBMsgBoxStyle style)
Parameters
styleVBMsgBoxStyleThe style a program asked for.
Returns
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
styleVBMsgBoxStyleThe style a program asked for: the buttons, the icon, the default button and the modality, summed.