Document Solutions for PDF
DS.Documents.Imaging Assembly / GrapeCity.Documents.Layout Namespace / LayoutRect Class / GetConstraint Method / GetConstraint(TargetParam,LayoutRect,AnchorParam) Method
The target parameter of the Constraint to search for.
The referenced (anchor) LayoutRect or a null reference (Nothing in Visual Basic) to reference the owner LayoutView.
The source parameter of the anchor LayoutRect; AnchorParam.None means any anchor parameter.

In This Topic
    GetConstraint(TargetParam,LayoutRect,AnchorParam) Method
    In This Topic
    Searches for a constraint for the specified target parameter, referencing the given LayoutRect.
    Syntax
    'Declaration
     
    Public Overloads Function GetConstraint( _
       ByVal targetParam As TargetParam, _
       ByVal anchorRect As LayoutRect, _
       Optional ByVal anchorParam As AnchorParam _
    ) As Constraint
    public Constraint GetConstraint( 
       TargetParam targetParam,
       LayoutRect anchorRect,
       AnchorParam anchorParam
    )

    Parameters

    targetParam
    The target parameter of the Constraint to search for.
    anchorRect
    The referenced (anchor) LayoutRect or a null reference (Nothing in Visual Basic) to reference the owner LayoutView.
    anchorParam
    The source parameter of the anchor LayoutRect; AnchorParam.None means any anchor parameter.

    Return Value

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