[]
        
(Showing Draft Content)

GrapeCity.Documents.Layout.LayoutRect

LayoutRect Class

Represents a rectangle with constraints.

Inheritance
LayoutRect
Namespace: GrapeCity.Documents.Layout
Assembly: DS.Documents.Imaging.dll
Syntax
public class LayoutRect
Public Class LayoutRect

Properties

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.

Methods

Name Description
AnchorBottomLeft(LayoutRect, float, float)

Anchors a LayoutRect to the bottom left corner and rotation angle of anchorRect.

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 anchorRect and sets width/height.

AnchorBottomLeftRight(LayoutRect, float, float, float)

Anchors a LayoutRect to the bottom, left, right sides and rotation angle of anchorRect.

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 anchorRect and sets the height.

AnchorBottomRight(LayoutRect, float, float)

Anchors a LayoutRect to the bottom right corner and rotation angle of anchorRect.

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 anchorRect and sets width/height.

AnchorDeflate(LayoutRect, float)

Deflates a LayoutRect relative to anchorRect.

AnchorDeflate(LayoutRect, float, float)

Deflates a LayoutRect relative to anchorRect.

AnchorDeflate(LayoutRect, float, float, float, float)

Deflates a LayoutRect relative to anchorRect.

AnchorExact(LayoutRect)

Anchors a LayoutRect to exactly the same bounds and rotation angle as anchorRect.

AnchorHorizontalLine(LayoutRect)

Anchors a LayoutRect to the left and right sides and rotation angle of anchorRect and sets zero height.

The vertical position is not fixed and requires an additional constraint.

AnchorInflate(LayoutRect, float)

Inflates a LayoutRect relative to anchorRect.

AnchorInflate(LayoutRect, float, float)

Inflates a LayoutRect relative to anchorRect.

AnchorInflate(LayoutRect, float, float, float, float)

Inflates a LayoutRect relative to anchorRect.

AnchorLeftRight(LayoutRect, float, float)

Anchors a LayoutRect to the left and right sides and rotation angle of anchorRect.

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 anchorRect and sets the height.

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 anchorRect.

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 anchorRect and sets the width.

AnchorRightTopBottom(LayoutRect, float, float, float)

Anchors a LayoutRect to the right, top, bottom sides and rotation angle of anchorRect.

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 anchorRect and sets the width.

AnchorTopBottom(LayoutRect, float, float)

Anchors a LayoutRect to the top and bottom sides and rotation angle of anchorRect.

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 anchorRect and sets the width.

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 anchorRect.

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 anchorRect and sets width/height.

AnchorTopLeftRight(LayoutRect, float, float, float)

Anchors a LayoutRect to the top, left, right sides and rotation angle of anchorRect.

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 anchorRect and sets the height.

AnchorTopRight(LayoutRect, float, float)

Anchors a LayoutRect to the top right corner and rotation angle of anchorRect.

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 anchorRect and sets width/height.

AnchorVerticalLine(LayoutRect)

Anchors a LayoutRect to the top and bottom sides and rotation angle of anchorRect and sets zero width.

The horizontal position is not fixed and requires an additional constraint.

AppendMaxBottom(AnchorPoint, float)

Adds a MaxBottom constraint relative to anchorPoint.

AppendMaxBottom(Contour, ContourPosition)

Adds a MaxBottom constraint relative to contour.

AppendMaxBottom(LayoutRect, AnchorParam, float)

Adds a MaxBottom constraint relative to anchorRect.

AppendMaxHeight(AnchorPoint, AnchorPoint, float, float)

Adds a MaxHeight constraint relative to the distance between anchorPoint1 and anchorPoint2.

AppendMaxHeight(LayoutRect, AnchorParam, float, float)

Adds a MaxHeight constraint relative to anchorRect.

AppendMaxHeight(float)

Adds a MaxHeight constraint.

AppendMaxLeft(AnchorPoint, float)

Adds a MaxLeft constraint relative to anchorPoint.

AppendMaxLeft(LayoutRect, AnchorParam, float)

Adds a MaxLeft constraint relative to anchorRect.

AppendMaxRight(AnchorPoint, float)

Adds a MaxRight constraint relative to anchorPoint.

AppendMaxRight(Contour, ContourPosition)

Adds a MaxRight constraint relative to contour.

AppendMaxRight(LayoutRect, AnchorParam, float)

Adds a MaxRight constraint relative to anchorRect.

AppendMaxTop(AnchorPoint, float)

Adds a MaxTop constraint relative to anchorPoint.

AppendMaxTop(LayoutRect, AnchorParam, float)

Adds a MaxTop constraint relative to anchorRect.

AppendMaxWidth(AnchorPoint, AnchorPoint, float, float)

Adds a MaxWidth constraint relative to the distance between anchorPoint1 and anchorPoint2.

AppendMaxWidth(LayoutRect, AnchorParam, float, float)

Adds a MaxWidth constraint relative to anchorRect.

AppendMaxWidth(float)

Adds a MaxWidth constraint.

AppendMinBottom(AnchorPoint, float)

Adds a MinBottom constraint relative to anchorPoint.

AppendMinBottom(LayoutRect, AnchorParam, float)

Adds a MinBottom constraint relative to anchorRect.

AppendMinHeight(AnchorPoint, AnchorPoint, float, float)

Adds a MinHeight constraint relative to the distance between anchorPoint1 and anchorPoint2.

AppendMinHeight(LayoutRect, AnchorParam, float, float)

Adds a MinHeight constraint relative to anchorRect.

AppendMinHeight(float)

Adds a MinHeight constraint.

AppendMinLeft(AnchorPoint, float)

Adds a MinLeft constraint relative to anchorPoint.

AppendMinLeft(Contour, ContourPosition)

Adds a MinLeft constraint relative to contour.

AppendMinLeft(LayoutRect, AnchorParam, float)

Adds a MinLeft constraint relative to anchorRect.

AppendMinRight(AnchorPoint, float)

Adds a MinRight constraint relative to anchorPoint.

AppendMinRight(LayoutRect, AnchorParam, float)

Adds a MinRight constraint relative to anchorRect.

AppendMinTop(AnchorPoint, float)

Adds a MinTop constraint relative to anchorPoint.

AppendMinTop(Contour, ContourPosition)

Adds a MinTop constraint relative to contour.

AppendMinTop(LayoutRect, AnchorParam, float)

Adds a MinTop constraint relative to anchorRect.

AppendMinWidth(AnchorPoint, AnchorPoint, float, float)

Adds a MinWidth constraint relative to the distance between anchorPoint1 and anchorPoint2.

AppendMinWidth(LayoutRect, AnchorParam, float, float)

Adds a MinWidth constraint relative to anchorRect.

AppendMinWidth(float)

Adds a MinWidth constraint.

AppendPositionConstraint(TargetParam, AnchorPoint, float)

Adds a PositionConstraint relative to anchorPoint.

AppendPositionConstraint(TargetParam, LayoutRect, AnchorParam, float)

Adds a PositionConstraint relative to anchorRect.

AppendSizeConstraint(TargetParam, AnchorPoint, AnchorPoint, float, float)

Adds a SizeConstraint relative to the distance between anchorPoint1 and anchorPoint2.

AppendSizeConstraint(TargetParam, LayoutRect, AnchorParam, float, float)

Adds a SizeConstraint relative to anchorRect.

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 otherRect is entirely contained within this LayoutRect.

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 targetRect.

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 otherRect.

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 anchorRect.

SetAspectRatio(float)

Adds an AspectRatio constraint.

SetBottom(AnchorPoint, float)

Adds a Bottom constraint relative to anchorPoint.

SetBottom(LayoutRect, AnchorParam, float)

Adds a Bottom constraint relative to anchorRect.

SetBottomAndOpposite(LayoutRect, AnchorParam, float)

Adds a Bottom constraint relative to anchorRect and the corresponding opposite constraint.

SetHeight(AnchorPoint, AnchorPoint, float, float)

Adds a Height constraint relative to the distance between anchorPoint1 and anchorPoint2.

SetHeight(LayoutRect, AnchorParam, float, float)

Adds a Height constraint relative to anchorRect.

SetHeight(float)

Adds a Height constraint.

SetHorizontalCenter(AnchorPoint, float)

Adds a HorizontalCenter constraint relative to anchorPoint.

SetHorizontalCenter(LayoutRect, AnchorParam, float)

Adds a HorizontalCenter constraint relative to anchorRect.

SetLeft(AnchorPoint, float)

Adds a Left constraint relative to anchorPoint.

SetLeft(LayoutRect, AnchorParam, float)

Adds a Left constraint relative to anchorRect.

SetLeftAndOpposite(LayoutRect, AnchorParam, float)

Adds a Left constraint relative to anchorRect and the corresponding opposite constraint.

SetRight(AnchorPoint, float)

Adds a Right constraint relative to anchorPoint.

SetRight(LayoutRect, AnchorParam, float)

Adds a Right constraint relative to anchorRect.

SetRightAndOpposite(LayoutRect, AnchorParam, float)

Adds a Right constraint relative to anchorRect and the corresponding opposite constraint.

SetStarHeight(float)

Adds a StarHeight constraint.

SetStarWidth(float)

Adds a StarWidth constraint.

SetTop(AnchorPoint, float)

Adds a Top constraint relative to anchorPoint.

SetTop(LayoutRect, AnchorParam, float)

Adds a Top constraint relative to anchorRect.

SetTopAndOpposite(LayoutRect, AnchorParam, float)

Adds a Top constraint relative to anchorRect and the corresponding opposite constraint.

SetVerticalCenter(AnchorPoint, float)

Adds a VerticalCenter constraint relative to anchorPoint.

SetVerticalCenter(LayoutRect, AnchorParam, float)

Adds a VerticalCenter constraint relative to anchorRect.

SetWidth(AnchorPoint, AnchorPoint, float, float)

Adds a Width constraint relative to the distance between anchorPoint1 and anchorPoint2.

SetWidth(LayoutRect, AnchorParam, float, float)

Adds a Width constraint relative to anchorRect.

SetWidth(float)

Adds a Width constraint.

ToRectangleF(LayoutRect)

Converts a LayoutRect to RectangleF relative to the targetRect.

ToString()

Returns a string that represents the current LayoutRect.