TdxTreeListAutomationSettings.OnCalculateRowProperty Event
Allows you to modify UIA node properties for individual rows depending on certain conditions.
Declaration
property OnCalculateRowProperty: TdxTreeListCalculateRowAutomationPropertyEvent read; write;
Remarks
You can handle the OnCalculateRowProperty event to modify individual UIA node properties depending on certain conditions.
Event Occurrence
The OnCalculateRowProperty event occurs every time a UIA client requests an individual node property for a row (multiple times – once per node property).
Automatic and Manual UIA Property Calculation
- Automatic
- Default. The
OnCalculateRowPropertyevent occurs automatically for each property of a UIA node corresponding to a row if the dxUIACalculateAllProperties global variable is set toTrue. - Manual
- You can set the dxUIACalculateAllProperties variable to
Falseto disable automatic calculation for all UIA properties. In this mode, handle the OnInitializeRowProperties event for each required data row to specify individual UIA node properties you need to calculate.
Event Parameters
The following parameters are available within an OnCalculateRowProperty event handler:
ARow- Provides access to the row (node) that raised the
OnCalculateRowPropertyevent. AProperty- Provides access to the calculated UI node property.
APropertiesProvides access to the list of all UIA node properties for the processed row (
ARow).You can use
AProperties.Name andAProperties.FullDescription properties to modify corresponding UIA node properties for the processed row (ARow).
Refer to the TdxTreeListCalculateRowAutomationPropertyEvent procedural type description for detailed information on all parameters accessible within an OnCalculateRowProperty event handler.