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

TcxCustomNavigatorButtons.Buttons Property

Provides zero-based indexed access to buttons (both default buttons and custom buttons) contained within the button collection.

#Declaration

Delphi
property Buttons[Index: Integer]: TcxNavigatorButton read; default;

#Property Value

Type
TcxNavigatorButton

#Remarks

You can access individual buttons by passing their default index to Buttons. Alternatively, you can access any default button via the corresponding property (for instance, TcxCustomNavigatorButtons.First for the First button).

The following two lines are equivalent (AButtons is a TcxCustomNavigatorButtons class instance).

AButtons[NBDI_FIRST].Visible := False;
AButtons.First.Visible := False;

To easily access and manage custom buttons, use the CustomButtons collection.

You can respond to button clicks by handling the OnButtonClick event.

See Also