Back to Devexpress

TdxOcNode.GetNodeInfo(TdxOcNodeInfo,TdxScaleFactor) Method

vcl-dxorgchr-dot-tdxocnode-dot-getnodeinfo-x28-dxorgchr-dot-tdxocnodeinfo-cxgeometry-dot-tdxscalefactor-x29.md

latest1.7 KB
Original Source

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

NameType
AInfoTdxOcNodeInfo
ATargetScaleFactorTdxScaleFactor

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

TdxOcNode Class

TdxOcNode Members

dxorgchr Unit