Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AlertButton.Predefined Property

Gets whether the current button is one of the predefined buttons (Close, Pin or Dropdown).

Namespace: DevExpress.XtraBars.Alerter

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public virtual bool Predefined { get; }

#Property Value

Type Description
Boolean

true if the current button is one of the predefined buttons; otherwise, false.

#Remarks

An alert window can display custom buttons and predefined buttons (Close, Pin or Dropdown). Any of them are represented by a AlertButton object. If a button is a predefined button, the Predefined property is set to true. Otherwise, the property is set to false.

To provide custom buttons for alert windows, add them to the AlertControl.Buttons collection. To specify the visibility of the predefined buttons, use the AlertControl.ShowCloseButton, AlertControl.ShowPinButton and AlertControl.PopupMenu properties.

See Also