[]
Represents a rectangle with constraints.
public class LayoutRect
Public Class LayoutRect
Name | Description |
---|---|
Frozen | Gets a value indicating if the LayoutRect does not allow any modifications. |
HasArea | Gets a value indicating whether the LayoutRect occupies non-zero area. |
HasDimension | Gets a value indicating whether the LayoutRect has non-zero width or height. |
Height | Gets the height of the LayoutRect. |
Invalid | Gets a value indicating if the LayoutRect is invalid. |
P0 | Gets the coordinates of the top left corner. |
P0X | Gets the X coordinate of the top left corner. |
P0Y | Gets the Y coordinate of the top left corner. |
P1 | Gets the coordinates of the top right corner. |
P1X | Gets the X coordinate of the top right corner. |
P1Y | Gets the Y coordinate of the top right corner. |
P2 | Gets the coordinates of the bottom left corner. |
P2X | Gets the X coordinate of the bottom left corner. |
P2Y | Gets the Y coordinate of the bottom left corner. |
P3 | Gets the coordinates of the bottom right corner. |
P3X | Gets the X coordinate of the bottom right corner. |
P3Y | Gets the Y coordinate of the bottom right corner. |
Resolved | Gets a value indicating if the LayoutRect is resolved. |
ResolvedAndValid | Gets a value indicating if the LayoutRect is resolved and valid. |
RotationAngle | Gets the actual rotation angle of the LayoutRect, in degrees. |
Tag | Gets or sets the object that contains data about the LayoutRect. |
Transform | Gets the transformation matrix of the LayoutRect taking into account the owner LayoutView transformation, the top left corner position (P0), and the rotation angle. |
View | Gets the owner LayoutView object. |
Width | Gets the width of the LayoutRect. |
Name | Description |
---|---|
AnchorBottomLeft(LayoutRect, float, float) | Anchors a LayoutRect to the bottom left corner and rotation angle of The top right corner is not fixed and requires additional constraints. |
AnchorBottomLeft(LayoutRect, float, float, float, float) | Anchors a LayoutRect to the bottom left corner and rotation angle of |
AnchorBottomLeftRight(LayoutRect, float, float, float) | Anchors a LayoutRect to the bottom, left, right sides and rotation angle of The top side is not fixed and requires an additional constraint. |
AnchorBottomLeftRight(LayoutRect, float, float, float, float) | Anchors a LayoutRect to the bottom, left, right sides and rotation angle of |
AnchorBottomRight(LayoutRect, float, float) | Anchors a LayoutRect to the bottom right corner and rotation angle of The top left corner is not fixed and requires additional constraints. |
AnchorBottomRight(LayoutRect, float, float, float, float) | Anchors a LayoutRect to the bottom right corner and rotation angle of |
AnchorDeflate(LayoutRect, float) | Deflates a LayoutRect relative to |
AnchorDeflate(LayoutRect, float, float) | Deflates a LayoutRect relative to |
AnchorDeflate(LayoutRect, float, float, float, float) | Deflates a LayoutRect relative to |
AnchorExact(LayoutRect) | Anchors a LayoutRect to exactly the same bounds and rotation angle as |
AnchorHorizontalLine(LayoutRect) | Anchors a LayoutRect to the left and right sides and rotation angle of The vertical position is not fixed and requires an additional constraint. |
AnchorInflate(LayoutRect, float) | Inflates a LayoutRect relative to |
AnchorInflate(LayoutRect, float, float) | Inflates a LayoutRect relative to |
AnchorInflate(LayoutRect, float, float, float, float) | Inflates a LayoutRect relative to |
AnchorLeftRight(LayoutRect, float, float) | Anchors a LayoutRect to the left and right sides and rotation angle of The top and bottom sides are not fixed and require additional constraints. |
AnchorLeftRight(LayoutRect, float, float, float) | Anchors a LayoutRect to the left and right sides and rotation angle of The vertical position is not fixed and requires an additional constraint. |
AnchorLeftTopBottom(LayoutRect, float, float, float) | Anchors a LayoutRect to the left, top, bottom sides and rotation angle of The right side is not fixed and requires an additional constraint. |
AnchorLeftTopBottom(LayoutRect, float, float, float, float) | Anchors a LayoutRect to the left, top, bottom sides and rotation angle of |
AnchorRightTopBottom(LayoutRect, float, float, float) | Anchors a LayoutRect to the right, top, bottom sides and rotation angle of The left side is not fixed and requires an additional constraint. |
AnchorRightTopBottom(LayoutRect, float, float, float, float) | Anchors a LayoutRect to the right, top, bottom sides and rotation angle of |
AnchorTopBottom(LayoutRect, float, float) | Anchors a LayoutRect to the top and bottom sides and rotation angle of The left and right sides are not fixed and require additional constraints. |
AnchorTopBottom(LayoutRect, float, float, float) | Anchors a LayoutRect to the top and bottom sides and rotation angle of The horizontal position is not fixed and requires an additional constraint. |
AnchorTopLeft(LayoutRect, float, float) | Anchors a LayoutRect to the top left corner and rotation angle of The bottom right corner is not fixed and requires additional constraints. |
AnchorTopLeft(LayoutRect, float, float, float, float) | Anchors a LayoutRect to the top left corner and rotation angle of |
AnchorTopLeftRight(LayoutRect, float, float, float) | Anchors a LayoutRect to the top, left, right sides and rotation angle of The bottom side is not fixed and requires an additional constraint. |
AnchorTopLeftRight(LayoutRect, float, float, float, float) | Anchors a LayoutRect to the top, left, right sides and rotation angle of |
AnchorTopRight(LayoutRect, float, float) | Anchors a LayoutRect to the top right corner and rotation angle of The bottom left corner is not fixed and requires additional constraints. |
AnchorTopRight(LayoutRect, float, float, float, float) | Anchors a LayoutRect to the top right corner and rotation angle of |
AnchorVerticalLine(LayoutRect) | Anchors a LayoutRect to the top and bottom sides and rotation angle of The horizontal position is not fixed and requires an additional constraint. |
AppendMaxBottom(AnchorPoint, float) | Adds a MaxBottom constraint relative to |
AppendMaxBottom(Contour, ContourPosition) | Adds a MaxBottom constraint relative to |
AppendMaxBottom(LayoutRect, AnchorParam, float) | Adds a MaxBottom constraint relative to |
AppendMaxHeight(AnchorPoint, AnchorPoint, float, float) | Adds a MaxHeight constraint relative to the distance between |
AppendMaxHeight(LayoutRect, AnchorParam, float, float) | Adds a MaxHeight constraint relative to |
AppendMaxHeight(float) | Adds a MaxHeight constraint. |
AppendMaxLeft(AnchorPoint, float) | Adds a MaxLeft constraint relative to |
AppendMaxLeft(LayoutRect, AnchorParam, float) | Adds a MaxLeft constraint relative to |
AppendMaxRight(AnchorPoint, float) | Adds a MaxRight constraint relative to |
AppendMaxRight(Contour, ContourPosition) | Adds a MaxRight constraint relative to |
AppendMaxRight(LayoutRect, AnchorParam, float) | Adds a MaxRight constraint relative to |
AppendMaxTop(AnchorPoint, float) | Adds a MaxTop constraint relative to |
AppendMaxTop(LayoutRect, AnchorParam, float) | Adds a MaxTop constraint relative to |
AppendMaxWidth(AnchorPoint, AnchorPoint, float, float) | Adds a MaxWidth constraint relative to the distance between |
AppendMaxWidth(LayoutRect, AnchorParam, float, float) | Adds a MaxWidth constraint relative to |
AppendMaxWidth(float) | Adds a MaxWidth constraint. |
AppendMinBottom(AnchorPoint, float) | Adds a MinBottom constraint relative to |
AppendMinBottom(LayoutRect, AnchorParam, float) | Adds a MinBottom constraint relative to |
AppendMinHeight(AnchorPoint, AnchorPoint, float, float) | Adds a MinHeight constraint relative to the distance between |
AppendMinHeight(LayoutRect, AnchorParam, float, float) | Adds a MinHeight constraint relative to |
AppendMinHeight(float) | Adds a MinHeight constraint. |
AppendMinLeft(AnchorPoint, float) | Adds a MinLeft constraint relative to |
AppendMinLeft(Contour, ContourPosition) | Adds a MinLeft constraint relative to |
AppendMinLeft(LayoutRect, AnchorParam, float) | Adds a MinLeft constraint relative to |
AppendMinRight(AnchorPoint, float) | Adds a MinRight constraint relative to |
AppendMinRight(LayoutRect, AnchorParam, float) | Adds a MinRight constraint relative to |
AppendMinTop(AnchorPoint, float) | Adds a MinTop constraint relative to |
AppendMinTop(Contour, ContourPosition) | Adds a MinTop constraint relative to |
AppendMinTop(LayoutRect, AnchorParam, float) | Adds a MinTop constraint relative to |
AppendMinWidth(AnchorPoint, AnchorPoint, float, float) | Adds a MinWidth constraint relative to the distance between |
AppendMinWidth(LayoutRect, AnchorParam, float, float) | Adds a MinWidth constraint relative to |
AppendMinWidth(float) | Adds a MinWidth constraint. |
AppendPositionConstraint(TargetParam, AnchorPoint, float) | Adds a PositionConstraint relative to |
AppendPositionConstraint(TargetParam, LayoutRect, AnchorParam, float) | Adds a PositionConstraint relative to |
AppendSizeConstraint(TargetParam, AnchorPoint, AnchorPoint, float, float) | Adds a SizeConstraint relative to the distance between |
AppendSizeConstraint(TargetParam, LayoutRect, AnchorParam, float, float) | Adds a SizeConstraint relative to |
AppendSizeConstraint(TargetParam, float) | Adds a SizeConstraint. |
AppendStarSizeConstraint(TargetParam, float) | Adds a StarWidth or StarHeight constraint. |
AsRectF() | Returns a RectangleF with the same Width and Height as this LayoutRect. |
Contains(LayoutRect) | Determines if the rectangular region represented by |
CreatePoint(float, float, float, float) | Creates a point to be used as an anchor for other LayoutRects. |
DetachFromView() | Detaches the LayoutRect from its owner LayoutView and removes all constraints referencing the LayoutRect. |
GetAngleConstraint() | Searches for the AngleConstraint. |
GetAngleRelativeTo(LayoutRect) | Gets the rotation angle of the current LayoutRect from the standpoint of the |
GetAspectRatioConstraint() | Searches for the AspectRatioConstraint. |
GetConstraint(TargetParam) | Searches for the first constraint for the specified target parameter. |
GetConstraint(TargetParam, LayoutRect, AnchorParam) | Searches for a constraint for the specified target parameter, referencing the given LayoutRect. |
GetContourConstraints() | Returns the list of ContourConstraints. |
GetIntersectionRelativeToSelf(LayoutRect) | Returns a RectangleF that represents the intersection of two rectangles, relative to this LayoutRect. |
GetIntersectionRelativeToView(LayoutRect) | Returns a RectangleF that represents the intersection of two rectangles, relative to the view rectangle. |
GetPositionConstraint(TargetParam) | Searches for the first PositionConstraint for the specified target parameter. |
GetSizeConstraint(TargetParam) | Searches for the first SizeConstraint for the specified target parameter. |
GetStarSizeConstraint(TargetParam) | Searches for the StarSizeConstraint for the specified target parameter. |
IntersectsWith(LayoutRect) | Determines if this LayoutRect intersects with |
RemoveAllConstraints() | Detaches all constraints from the current LayoutRect. |
RemoveConstraint(Constraint) | Detaches the specified Constraint from the LayoutRect. |
RemoveConstraint(TargetParam) | Detaches the first constraint for the specified target parameter. |
SetAngle(LayoutRect, int) | Adds an Angle constraint relative to |
SetAspectRatio(float) | Adds an AspectRatio constraint. |
SetBottom(AnchorPoint, float) | Adds a Bottom constraint relative to |
SetBottom(LayoutRect, AnchorParam, float) | Adds a Bottom constraint relative to |
SetBottomAndOpposite(LayoutRect, AnchorParam, float) | Adds a Bottom constraint relative to |
SetHeight(AnchorPoint, AnchorPoint, float, float) | Adds a Height constraint relative to the distance between |
SetHeight(LayoutRect, AnchorParam, float, float) | Adds a Height constraint relative to |
SetHeight(float) | Adds a Height constraint. |
SetHorizontalCenter(AnchorPoint, float) | Adds a HorizontalCenter constraint relative to |
SetHorizontalCenter(LayoutRect, AnchorParam, float) | Adds a HorizontalCenter constraint relative to |
SetLeft(AnchorPoint, float) | Adds a Left constraint relative to |
SetLeft(LayoutRect, AnchorParam, float) | Adds a Left constraint relative to |
SetLeftAndOpposite(LayoutRect, AnchorParam, float) | Adds a Left constraint relative to |
SetRight(AnchorPoint, float) | Adds a Right constraint relative to |
SetRight(LayoutRect, AnchorParam, float) | Adds a Right constraint relative to |
SetRightAndOpposite(LayoutRect, AnchorParam, float) | Adds a Right constraint relative to |
SetStarHeight(float) | Adds a StarHeight constraint. |
SetStarWidth(float) | Adds a StarWidth constraint. |
SetTop(AnchorPoint, float) | Adds a Top constraint relative to |
SetTop(LayoutRect, AnchorParam, float) | Adds a Top constraint relative to |
SetTopAndOpposite(LayoutRect, AnchorParam, float) | Adds a Top constraint relative to |
SetVerticalCenter(AnchorPoint, float) | Adds a VerticalCenter constraint relative to |
SetVerticalCenter(LayoutRect, AnchorParam, float) | Adds a VerticalCenter constraint relative to |
SetWidth(AnchorPoint, AnchorPoint, float, float) | Adds a Width constraint relative to the distance between |
SetWidth(LayoutRect, AnchorParam, float, float) | Adds a Width constraint relative to |
SetWidth(float) | Adds a Width constraint. |
ToRectangleF(LayoutRect) | Converts a LayoutRect to RectangleF relative to the |
ToString() | Returns a string that represents the current LayoutRect. |