Skip to main content

TcxCustomNavigatorButtons.Buttons Property

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

Declaration

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