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

TdxOcNode.GetNodeInfo(TdxOcNodeInfo,TdxScaleFactor) Method

Returns certain node property values as a packed record.

#Declaration

Delphi
procedure GetNodeInfo(var AInfo: TdxOcNodeInfo; ATargetScaleFactor: TdxScaleFactor = nil);

#Parameters

Name Type
AInfo TdxOcNodeInfo
ATargetScaleFactor TdxScaleFactor

#Remarks

Call this procedure to save the tree node’s stored Width, Height, Color, ChildAlign, Shape, ImageIndex, and ImageAlign property values to the TdxOcNodeInfo packed record passed as the AInfo parameter. Use the optional ATargetScaleFactor parameter to apply a specific scaling factor to the returned record’s Width and Height field values.

The returned AInfo information can be useful, since the active and stored values of the listed node’s properties differ in certain cases.

The OrgChart control‘s SaveToStream and LoadFromStream procedures call the GetNodeInfo procedure internally to persist the displayed chart’s node layout.

See Also