Skip to main content

TdxOcNode.GetNodeInfo(TdxOcNodeInfo,TdxScaleFactor) Method

Returns certain node property values as a packed record.

Declaration

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