[]
        
(Showing Draft Content)

GrapeCity.Documents.Layout.LayoutRect.AppendPositionConstraint

AppendPositionConstraint Method

AppendPositionConstraint(TargetParam, LayoutRect, AnchorParam, float)

Adds a PositionConstraint relative to anchorRect.

Declaration
public PositionConstraint AppendPositionConstraint(TargetParam targetParam, LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)
Public Function AppendPositionConstraint(targetParam As TargetParam, anchorRect As LayoutRect, anchorParam As AnchorParam, Optional offset As Single = 0) As PositionConstraint
Parameters
Type Name Description
TargetParam targetParam

The target parameter of the current LayoutRect.

LayoutRect anchorRect

The referenced LayoutRect or null to reference the owner LayoutView.

AnchorParam anchorParam

The source parameter of the anchorRect.

float offset

An increment to the value of the source parameter.

Returns
Type Description
PositionConstraint

New constraint just added.

AppendPositionConstraint(TargetParam, AnchorPoint, float)

Adds a PositionConstraint relative to anchorPoint.

Declaration
public PositionConstraint AppendPositionConstraint(TargetParam targetParam, AnchorPoint anchorPoint, float offset = 0)
Public Function AppendPositionConstraint(targetParam As TargetParam, anchorPoint As AnchorPoint, Optional offset As Single = 0) As PositionConstraint
Parameters
Type Name Description
TargetParam targetParam

The target parameter of the current LayoutRect.

AnchorPoint anchorPoint

The referenced AnchorPoint.

float offset

An increment to the position of anchorPoint.

Returns
Type Description
PositionConstraint

New constraint just added.