[]
        
(Showing Draft Content)

GrapeCity.Documents.Layout.LayoutRect.GetConstraint

GetConstraint Method

GetConstraint(TargetParam)

Searches for the first constraint for the specified target parameter.

Declaration
public Constraint GetConstraint(TargetParam targetParam)
Public Function GetConstraint(targetParam As TargetParam) As Constraint
Parameters
Type Name Description
TargetParam targetParam

The target parameter of the Constraint to search for.

Returns
Type Description
Constraint

The found Constraint object or null if the target parameter is not found.

GetConstraint(TargetParam, LayoutRect, AnchorParam)

Searches for a constraint for the specified target parameter, referencing the given LayoutRect.

Declaration
public Constraint GetConstraint(TargetParam targetParam, LayoutRect anchorRect, AnchorParam anchorParam = AnchorParam.None)
Public Function GetConstraint(targetParam As TargetParam, anchorRect As LayoutRect, Optional anchorParam As AnchorParam = AnchorParam.None) As Constraint
Parameters
Type Name Description
TargetParam targetParam

The target parameter of the Constraint to search for.

LayoutRect anchorRect

The referenced (anchor) LayoutRect or null to reference the owner LayoutView.

AnchorParam anchorParam

The source parameter of the anchor LayoutRect; AnchorParam.None means any anchor parameter.

Returns
Type Description
Constraint

The found Constraint object or null if the constraint is not found.