Table of Contents

Method SetButtons

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetButtons(params KnownButton[])

Configures the visibility of buttons based on the specified set of known buttons.

public virtual void SetButtons(params KnownButton[] buttons)

Parameters

buttons KnownButton[]

An array of KnownButton values representing the buttons to be displayed. This parameter cannot be null.

Remarks

This method updates the visibility of predefined buttons such as 'Ok', 'Apply', and 'Cancel', as well as any additional buttons specified in the buttons array. Buttons not included in the array will be hidden.

Exceptions

ArgumentNullException

Thrown if buttons is null.

SetButtons(MessageBoxButtons)

Configures the panel with the specified button layout.

public virtual void SetButtons(MessageBoxButtons buttons)

Parameters

buttons MessageBoxButtons

The MessageBoxButtons enumeration value that specifies the button layout to display.

Remarks

This method converts the specified buttons to a format suitable for the panel and applies the configuration.