[]
Searches for the first constraint for the specified target parameter.
public Constraint GetConstraint(TargetParam targetParam)
Public Function GetConstraint(targetParam As TargetParam) As Constraint
Type | Name | Description |
---|---|---|
TargetParam | targetParam | The target parameter of the Constraint to search for. |
Type | Description |
---|---|
Constraint | The found Constraint object or null if the target parameter is not found. |
Searches for a constraint for the specified target parameter, referencing the given LayoutRect.
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
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. |
Type | Description |
---|---|
Constraint | The found Constraint object or null if the constraint is not found. |