Back to Devexpress

IdxActionValue Interface

vcl-dxactions-b3cdea11.md

latest2.1 KB
Original Source

IdxActionValue Interface

Exposes the methods that work with values that executed end-user commands apply to the corresponding DevExpress controls or their settings.

Declaration

delphi
IdxActionValue = interface(IInterface)

Remarks

All TdxBasicAction class descendants that assign specific new values (such as colors, font sizes, etc.) to the corresponding control settings, implement the IdxActionValue interface to be able to store the Variant value that they apply and synchronize it with a linked UI element.

This interface exposes the following members that:

  • Store the value that a command applies to the target control or setting (Value);

  • Update the linked UI element’s state (GetValue);

  • Apply the new value to the target control or setting (SetValue and Value).

The stored Variant value interpretation depends on an indicator interface that the value-based action class (a TdxBasicAction descendant that implements the IdxActionValue interface) supports:

Indicator InterfaceThe Value Property Stores
IdxActionColorValueA TColor value.
IdxActionFontNameValueA font’s typeface name (Variant is interpreted as a string).
IdxActionFontSizeValueA font size (Variant is interpreted as an integer).

The actual behavior of the methods that the IdxActionValue interface exposes depends on its implementation. Refer to the descriptions of the corresponding methods provided by all classes that support this interface.

Inheritance

IInterface IdxActionValue

See Also

IdxActionValue Members

dxActions Unit