[]
        
(Showing Draft Content)

GrapeCity.Documents.Layout.LayoutRect

Class LayoutRect

Namespace
GrapeCity.Documents.Layout
Assembly
GcDocs.Imaging.dll

Represents a rectangle with constraints.

public class LayoutRect
Inheritance
object
LayoutRect
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Frozen

Gets a value indicating if the LayoutRect does not allow any modifications.

public bool Frozen { get; }

Property Value

bool

HasArea

Gets a value indicating whether the LayoutRect occupies non-zero area.

public bool HasArea { get; }

Property Value

bool

HasDimension

Gets a value indicating whether the LayoutRect has non-zero width or height.

public bool HasDimension { get; }

Property Value

bool

Height

Gets the height of the LayoutRect.

public float Height { get; }

Property Value

float

Invalid

Gets a value indicating if the LayoutRect is invalid.

public bool Invalid { get; }

Property Value

bool

P0

Gets the coordinates of the top left corner.

public PointF P0 { get; }

Property Value

System.Drawing.PointF

P0X

Gets the X coordinate of the top left corner.

public float P0X { get; }

Property Value

float

P0Y

Gets the Y coordinate of the top left corner.

public float P0Y { get; }

Property Value

float

P1

Gets the coordinates of the top right corner.

public PointF P1 { get; }

Property Value

System.Drawing.PointF

P1X

Gets the X coordinate of the top right corner.

public float P1X { get; }

Property Value

float

P1Y

Gets the Y coordinate of the top right corner.

public float P1Y { get; }

Property Value

float

P2

Gets the coordinates of the bottom left corner.

public PointF P2 { get; }

Property Value

System.Drawing.PointF

P2X

Gets the X coordinate of the bottom left corner.

public float P2X { get; }

Property Value

float

P2Y

Gets the Y coordinate of the bottom left corner.

public float P2Y { get; }

Property Value

float

P3

Gets the coordinates of the bottom right corner.

public PointF P3 { get; }

Property Value

System.Drawing.PointF

P3X

Gets the X coordinate of the bottom right corner.

public float P3X { get; }

Property Value

float

P3Y

Gets the Y coordinate of the bottom right corner.

public float P3Y { get; }

Property Value

float

Resolved

Gets a value indicating if the LayoutRect is resolved.

public bool Resolved { get; }

Property Value

bool

ResolvedAndValid

Gets a value indicating if the LayoutRect is resolved and valid.

public bool ResolvedAndValid { get; }

Property Value

bool

RotationAngle

Gets the actual rotation angle of the LayoutRect, in degrees.

public int RotationAngle { get; }

Property Value

int

Tag

Gets or sets the object that contains data about the LayoutRect.

public object Tag { get; set; }

Property Value

object

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.

public Matrix Transform { get; }

Property Value

Matrix

View

Gets the owner LayoutView object.

public LayoutView View { get; }

Property Value

LayoutView

Width

Gets the width of the LayoutRect.

public float Width { get; }

Property Value

float

Methods

AnchorBottomLeft(LayoutRect, float, float, float, float)

Anchors a LayoutRect to the bottom left corner and rotation angle of anchorRect and sets width/height.

public void AnchorBottomLeft(LayoutRect anchorRect, float paddingBottom, float paddingLeft, float width, float height)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingBottom float

The inner padding relative to the bottom side of the anchorRect.

paddingLeft float

The inner padding relative to the left side of the anchorRect.

width float

The proposed width.

height float

The proposed height.

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.

public void AnchorBottomLeft(LayoutRect anchorRect, float paddingBottom, float paddingLeft)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingBottom float

The inner padding relative to the bottom side of the anchorRect.

paddingLeft float

The inner padding relative to the left side of the anchorRect.

AnchorBottomLeftRight(LayoutRect, float, float, float, float)

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

public void AnchorBottomLeftRight(LayoutRect anchorRect, float paddingBottom, float paddingLeft, float paddingRight, float height)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingBottom float

The inner padding relative to the bottom side of the anchorRect.

paddingLeft float

The inner padding relative to the left side of the anchorRect.

paddingRight float

The inner padding relative to the right side of the anchorRect.

height float

The proposed 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.

public void AnchorBottomLeftRight(LayoutRect anchorRect, float paddingBottom, float paddingLeft, float paddingRight)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingBottom float

The inner padding relative to the bottom side of the anchorRect.

paddingLeft float

The inner padding relative to the left side of the anchorRect.

paddingRight float

The inner padding relative to the right side of the anchorRect.

AnchorBottomRight(LayoutRect, float, float, float, float)

Anchors a LayoutRect to the bottom right corner and rotation angle of anchorRect and sets width/height.

public void AnchorBottomRight(LayoutRect anchorRect, float paddingBottom, float paddingRight, float width, float height)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingBottom float

The inner padding relative to the bottom side of the anchorRect.

paddingRight float

The inner padding relative to the right side of the anchorRect.

width float

The proposed width.

height float

The proposed 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.

public void AnchorBottomRight(LayoutRect anchorRect, float paddingBottom, float paddingRight)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingBottom float

The inner padding relative to the bottom side of the anchorRect.

paddingRight float

The inner padding relative to the right side of the anchorRect.

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

Deflates a LayoutRect relative to anchorRect.

public void AnchorDeflate(LayoutRect anchorRect, float deflateLeft, float deflateTop, float deflateRight, float deflateBottom)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

deflateLeft float

The amount to deflate the left bound relative to anchorRect.

deflateTop float

The amount to deflate the top bound relative to anchorRect.

deflateRight float

The amount to deflate the left and right bounds relative to anchorRect.

deflateBottom float

The amount to deflate the top and bottom bounds relative to anchorRect.

AnchorDeflate(LayoutRect, float, float)

Deflates a LayoutRect relative to anchorRect.

public void AnchorDeflate(LayoutRect anchorRect, float deflateHorizontal, float deflateVertical)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

deflateHorizontal float

The amount to deflate the left and right bounds relative to anchorRect.

deflateVertical float

The amount to deflate the top and bottom bounds relative to anchorRect.

AnchorDeflate(LayoutRect, float)

Deflates a LayoutRect relative to anchorRect.

public void AnchorDeflate(LayoutRect anchorRect, float deflateAmount)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

deflateAmount float

The amount to deflate the bounds relative to anchorRect.

AnchorExact(LayoutRect)

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

public void AnchorExact(LayoutRect anchorRect)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

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.

public void AnchorHorizontalLine(LayoutRect anchorRect)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

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

Inflates a LayoutRect relative to anchorRect.

public void AnchorInflate(LayoutRect anchorRect, float inflateLeft, float inflateTop, float inflateRight, float inflateBottom)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

inflateLeft float

The amount to inflate the left bound relative to anchorRect.

inflateTop float

The amount to inflate the top bound relative to anchorRect.

inflateRight float

The amount to inflate the left and right bounds relative to anchorRect.

inflateBottom float

The amount to inflate the top and bottom bounds relative to anchorRect.

AnchorInflate(LayoutRect, float, float)

Inflates a LayoutRect relative to anchorRect.

public void AnchorInflate(LayoutRect anchorRect, float inflateHorizontal, float inflateVertical)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

inflateHorizontal float

The amount to inflate the left and right bounds relative to anchorRect.

inflateVertical float

The amount to inflate the top and bottom bounds relative to anchorRect.

AnchorInflate(LayoutRect, float)

Inflates a LayoutRect relative to anchorRect.

public void AnchorInflate(LayoutRect anchorRect, float inflateAmount)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

inflateAmount float

The amount to inflate the bounds relative to anchorRect.

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.

public void AnchorLeftRight(LayoutRect anchorRect, float paddingLeft, float paddingRight, float height)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingLeft float

The inner padding relative to the left side of the anchorRect.

paddingRight float

The inner padding relative to the right side of the anchorRect.

height float

The proposed height.

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.

public void AnchorLeftRight(LayoutRect anchorRect, float paddingLeft, float paddingRight)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingLeft float

The inner padding relative to the left side of the anchorRect.

paddingRight float

The inner padding relative to the right side of the anchorRect.

AnchorLeftTopBottom(LayoutRect, float, float, float, float)

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

public void AnchorLeftTopBottom(LayoutRect anchorRect, float paddingLeft, float paddingTop, float paddingBottom, float width)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingLeft float

The inner padding relative to the left side of the anchorRect.

paddingTop float

The inner padding relative to the top side of the anchorRect.

paddingBottom float

The inner padding relative to the bottom side of the anchorRect.

width float

The proposed width.

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.

public void AnchorLeftTopBottom(LayoutRect anchorRect, float paddingLeft, float paddingTop, float paddingBottom)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingLeft float

The inner padding relative to the left side of the anchorRect.

paddingTop float

The inner padding relative to the top side of the anchorRect.

paddingBottom float

The inner padding relative to the bottom side of the anchorRect.

AnchorRightTopBottom(LayoutRect, float, float, float, float)

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

public void AnchorRightTopBottom(LayoutRect anchorRect, float paddingRight, float paddingTop, float paddingBottom, float width)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingRight float

The inner padding relative to the right side of the anchorRect.

paddingTop float

The inner padding relative to the top side of the anchorRect.

paddingBottom float

The inner padding relative to the bottom side of the anchorRect.

width float

The proposed 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.

public void AnchorRightTopBottom(LayoutRect anchorRect, float paddingRight, float paddingTop, float paddingBottom)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingRight float

The inner padding relative to the right side of the anchorRect.

paddingTop float

The inner padding relative to the top side of the anchorRect.

paddingBottom float

The inner padding relative to the bottom side of the anchorRect.

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.

public void AnchorTopBottom(LayoutRect anchorRect, float paddingTop, float paddingBottom, float width)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingTop float

The inner padding relative to the top side of the anchorRect.

paddingBottom float

The inner padding relative to the bottom side of the anchorRect.

width float

The proposed 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.

public void AnchorTopBottom(LayoutRect anchorRect, float paddingTop, float paddingBottom)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingTop float

The inner padding relative to the top side of the anchorRect.

paddingBottom float

The inner padding relative to the bottom side of the anchorRect.

AnchorTopLeft(LayoutRect, float, float, float, float)

Anchors a LayoutRect to the top left corner and rotation angle of anchorRect and sets width/height.

public void AnchorTopLeft(LayoutRect anchorRect, float paddingTop, float paddingLeft, float width, float height)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingTop float

The inner padding relative to the top side of the anchorRect.

paddingLeft float

The inner padding relative to the left side of the anchorRect.

width float

The proposed width.

height float

The proposed height.

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.

public void AnchorTopLeft(LayoutRect anchorRect, float paddingTop, float paddingLeft)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingTop float

The inner padding relative to the top side of the anchorRect.

paddingLeft float

The inner padding relative to the left side of the anchorRect.

AnchorTopLeftRight(LayoutRect, float, float, float, float)

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

public void AnchorTopLeftRight(LayoutRect anchorRect, float paddingTop, float paddingLeft, float paddingRight, float height)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingTop float

The inner padding relative to the top side of the anchorRect.

paddingLeft float

The inner padding relative to the left side of the anchorRect.

paddingRight float

The inner padding relative to the right side of the anchorRect.

height float

The proposed 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.

public void AnchorTopLeftRight(LayoutRect anchorRect, float paddingTop, float paddingLeft, float paddingRight)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingTop float

The inner padding relative to the top side of the anchorRect.

paddingLeft float

The inner padding relative to the left side of the anchorRect.

paddingRight float

The inner padding relative to the right side of the anchorRect.

AnchorTopRight(LayoutRect, float, float, float, float)

Anchors a LayoutRect to the top right corner and rotation angle of anchorRect and sets width/height.

public void AnchorTopRight(LayoutRect anchorRect, float paddingTop, float paddingRight, float width, float height)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingTop float

The inner padding relative to the top side of the anchorRect.

paddingRight float

The inner padding relative to the right side of the anchorRect.

width float

The proposed width.

height float

The proposed 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.

public void AnchorTopRight(LayoutRect anchorRect, float paddingTop, float paddingRight)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

paddingTop float

The inner padding relative to the top side of the anchorRect.

paddingRight float

The inner padding relative to the right side of the anchorRect.

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.

public void AnchorVerticalLine(LayoutRect anchorRect)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

AppendMaxBottom(AnchorPoint, float)

Adds a MaxBottom constraint relative to anchorPoint.

public PositionConstraint AppendMaxBottom(AnchorPoint anchorPoint, float offset = 0)

Parameters

anchorPoint AnchorPoint

The referenced AnchorPoint.

offset float

An increment to the position of anchorPoint.

Returns

PositionConstraint

New constraint just added.

AppendMaxBottom(Contour, ContourPosition)

Adds a MaxBottom constraint relative to contour.

public ContourConstraint AppendMaxBottom(Contour contour, ContourPosition contourPosition)

Parameters

contour Contour

The referenced Contour.

contourPosition ContourPosition

The position of anchor for the contour constraint.

Returns

ContourConstraint

New constraint just added.

AppendMaxBottom(LayoutRect, AnchorParam, float)

Adds a MaxBottom constraint relative to anchorRect.

public PositionConstraint AppendMaxBottom(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

AppendMaxHeight(AnchorPoint, AnchorPoint, float, float)

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

public SizeConstraint AppendMaxHeight(AnchorPoint anchorPoint1, AnchorPoint anchorPoint2, float delta = 0, float multiplier = 1)

Parameters

anchorPoint1 AnchorPoint

The first referenced AnchorPoint.

anchorPoint2 AnchorPoint

The second referenced AnchorPoint.

delta float

An increment to the value of the source distance.

multiplier float

A multiplier to the value of the source distance; applied before adding the delta.

Returns

SizeConstraint

New constraint just added.

AppendMaxHeight(LayoutRect, AnchorParam, float, float)

Adds a MaxHeight constraint relative to anchorRect.

public SizeConstraint AppendMaxHeight(LayoutRect anchorRect, AnchorParam anchorParam, float delta = 0, float multiplier = 1)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

delta float

An increment to the value of the source (anchor) parameter.

multiplier float

A multiplier to the value of the source parameter; applied before adding the delta.

Returns

SizeConstraint

New constraint just added.

AppendMaxHeight(float)

Adds a MaxHeight constraint.

public SizeConstraint AppendMaxHeight(float maxHeight)

Parameters

maxHeight float

The proposed maximum height.

Returns

SizeConstraint

New constraint just added.

AppendMaxLeft(AnchorPoint, float)

Adds a MaxLeft constraint relative to anchorPoint.

public PositionConstraint AppendMaxLeft(AnchorPoint anchorPoint, float offset = 0)

Parameters

anchorPoint AnchorPoint

The referenced AnchorPoint.

offset float

An increment to the position of anchorPoint.

Returns

PositionConstraint

New constraint just added.

AppendMaxLeft(LayoutRect, AnchorParam, float)

Adds a MaxLeft constraint relative to anchorRect.

public PositionConstraint AppendMaxLeft(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

AppendMaxRight(AnchorPoint, float)

Adds a MaxRight constraint relative to anchorPoint.

public PositionConstraint AppendMaxRight(AnchorPoint anchorPoint, float offset = 0)

Parameters

anchorPoint AnchorPoint

The referenced AnchorPoint.

offset float

An increment to the position of anchorPoint.

Returns

PositionConstraint

New constraint just added.

AppendMaxRight(Contour, ContourPosition)

Adds a MaxRight constraint relative to contour.

public ContourConstraint AppendMaxRight(Contour contour, ContourPosition contourPosition)

Parameters

contour Contour

The referenced Contour.

contourPosition ContourPosition

The position of anchor for the contour constraint.

Returns

ContourConstraint

New constraint just added.

AppendMaxRight(LayoutRect, AnchorParam, float)

Adds a MaxRight constraint relative to anchorRect.

public PositionConstraint AppendMaxRight(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

AppendMaxTop(AnchorPoint, float)

Adds a MaxTop constraint relative to anchorPoint.

public PositionConstraint AppendMaxTop(AnchorPoint anchorPoint, float offset = 0)

Parameters

anchorPoint AnchorPoint

The referenced AnchorPoint.

offset float

An increment to the position of anchorPoint.

Returns

PositionConstraint

New constraint just added.

AppendMaxTop(LayoutRect, AnchorParam, float)

Adds a MaxTop constraint relative to anchorRect.

public PositionConstraint AppendMaxTop(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

AppendMaxWidth(AnchorPoint, AnchorPoint, float, float)

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

public SizeConstraint AppendMaxWidth(AnchorPoint anchorPoint1, AnchorPoint anchorPoint2, float delta = 0, float multiplier = 1)

Parameters

anchorPoint1 AnchorPoint

The first referenced AnchorPoint.

anchorPoint2 AnchorPoint

The second referenced AnchorPoint.

delta float

An increment to the value of the source distance.

multiplier float

A multiplier to the value of the source distance; applied before adding the delta.

Returns

SizeConstraint

New constraint just added.

AppendMaxWidth(LayoutRect, AnchorParam, float, float)

Adds a MaxWidth constraint relative to anchorRect.

public SizeConstraint AppendMaxWidth(LayoutRect anchorRect, AnchorParam anchorParam, float delta = 0, float multiplier = 1)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

delta float

An increment to the value of the source (anchor) parameter.

multiplier float

A multiplier to the value of the source parameter; applied before adding the delta.

Returns

SizeConstraint

New constraint just added.

AppendMaxWidth(float)

Adds a MaxWidth constraint.

public SizeConstraint AppendMaxWidth(float maxWidth)

Parameters

maxWidth float

The proposed maximum width.

Returns

SizeConstraint

New constraint just added.

AppendMinBottom(AnchorPoint, float)

Adds a MinBottom constraint relative to anchorPoint.

public PositionConstraint AppendMinBottom(AnchorPoint anchorPoint, float offset = 0)

Parameters

anchorPoint AnchorPoint

The referenced AnchorPoint.

offset float

An increment to the position of anchorPoint.

Returns

PositionConstraint

New constraint just added.

AppendMinBottom(LayoutRect, AnchorParam, float)

Adds a MinBottom constraint relative to anchorRect.

public PositionConstraint AppendMinBottom(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

AppendMinHeight(AnchorPoint, AnchorPoint, float, float)

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

public SizeConstraint AppendMinHeight(AnchorPoint anchorPoint1, AnchorPoint anchorPoint2, float delta = 0, float multiplier = 1)

Parameters

anchorPoint1 AnchorPoint

The first referenced AnchorPoint.

anchorPoint2 AnchorPoint

The second referenced AnchorPoint.

delta float

An increment to the value of the source distance.

multiplier float

A multiplier to the value of the source distance; applied before adding the delta.

Returns

SizeConstraint

New constraint just added.

AppendMinHeight(LayoutRect, AnchorParam, float, float)

Adds a MinHeight constraint relative to anchorRect.

public SizeConstraint AppendMinHeight(LayoutRect anchorRect, AnchorParam anchorParam, float delta = 0, float multiplier = 1)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

delta float

An increment to the value of the source (anchor) parameter.

multiplier float

A multiplier to the value of the source parameter; applied before adding the delta.

Returns

SizeConstraint

New constraint just added.

AppendMinHeight(float)

Adds a MinHeight constraint.

public SizeConstraint AppendMinHeight(float minHeight)

Parameters

minHeight float

The proposed minimum height.

Returns

SizeConstraint

New constraint just added.

AppendMinLeft(AnchorPoint, float)

Adds a MinLeft constraint relative to anchorPoint.

public PositionConstraint AppendMinLeft(AnchorPoint anchorPoint, float offset = 0)

Parameters

anchorPoint AnchorPoint

The referenced AnchorPoint.

offset float

An increment to the position of anchorPoint.

Returns

PositionConstraint

New constraint just added.

AppendMinLeft(Contour, ContourPosition)

Adds a MinLeft constraint relative to contour.

public ContourConstraint AppendMinLeft(Contour contour, ContourPosition contourPosition)

Parameters

contour Contour

The referenced Contour.

contourPosition ContourPosition

The position of anchor for the contour constraint.

Returns

ContourConstraint

New constraint just added.

AppendMinLeft(LayoutRect, AnchorParam, float)

Adds a MinLeft constraint relative to anchorRect.

public PositionConstraint AppendMinLeft(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

AppendMinRight(AnchorPoint, float)

Adds a MinRight constraint relative to anchorPoint.

public PositionConstraint AppendMinRight(AnchorPoint anchorPoint, float offset = 0)

Parameters

anchorPoint AnchorPoint

The referenced AnchorPoint.

offset float

An increment to the position of anchorPoint.

Returns

PositionConstraint

New constraint just added.

AppendMinRight(LayoutRect, AnchorParam, float)

Adds a MinRight constraint relative to anchorRect.

public PositionConstraint AppendMinRight(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

AppendMinTop(AnchorPoint, float)

Adds a MinTop constraint relative to anchorPoint.

public PositionConstraint AppendMinTop(AnchorPoint anchorPoint, float offset = 0)

Parameters

anchorPoint AnchorPoint

The referenced AnchorPoint.

offset float

An increment to the position of anchorPoint.

Returns

PositionConstraint

New constraint just added.

AppendMinTop(Contour, ContourPosition)

Adds a MinTop constraint relative to contour.

public ContourConstraint AppendMinTop(Contour contour, ContourPosition contourPosition)

Parameters

contour Contour

The referenced Contour.

contourPosition ContourPosition

The position of anchor for the contour constraint.

Returns

ContourConstraint

New constraint just added.

AppendMinTop(LayoutRect, AnchorParam, float)

Adds a MinTop constraint relative to anchorRect.

public PositionConstraint AppendMinTop(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

AppendMinWidth(AnchorPoint, AnchorPoint, float, float)

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

public SizeConstraint AppendMinWidth(AnchorPoint anchorPoint1, AnchorPoint anchorPoint2, float delta = 0, float multiplier = 1)

Parameters

anchorPoint1 AnchorPoint

The first referenced AnchorPoint.

anchorPoint2 AnchorPoint

The second referenced AnchorPoint.

delta float

An increment to the value of the source distance.

multiplier float

A multiplier to the value of the source distance; applied before adding the delta.

Returns

SizeConstraint

New constraint just added.

AppendMinWidth(LayoutRect, AnchorParam, float, float)

Adds a MinWidth constraint relative to anchorRect.

public SizeConstraint AppendMinWidth(LayoutRect anchorRect, AnchorParam anchorParam, float delta = 0, float multiplier = 1)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

delta float

An increment to the value of the source (anchor) parameter.

multiplier float

A multiplier to the value of the source parameter; applied before adding the delta.

Returns

SizeConstraint

New constraint just added.

AppendMinWidth(float)

Adds a MinWidth constraint.

public SizeConstraint AppendMinWidth(float minWidth)

Parameters

minWidth float

The proposed minimum width.

Returns

SizeConstraint

New constraint just added.

AppendPositionConstraint(TargetParam, AnchorPoint, float)

Adds a PositionConstraint relative to anchorPoint.

public PositionConstraint AppendPositionConstraint(TargetParam targetParam, AnchorPoint anchorPoint, float offset = 0)

Parameters

targetParam TargetParam

The target parameter of the current LayoutRect.

anchorPoint AnchorPoint

The referenced AnchorPoint.

offset float

An increment to the position of anchorPoint.

Returns

PositionConstraint

New constraint just added.

AppendPositionConstraint(TargetParam, LayoutRect, AnchorParam, float)

Adds a PositionConstraint relative to anchorRect.

public PositionConstraint AppendPositionConstraint(TargetParam targetParam, LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

targetParam TargetParam

The target parameter of the current LayoutRect.

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

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

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

public SizeConstraint AppendSizeConstraint(TargetParam targetParam, AnchorPoint anchorPoint1, AnchorPoint anchorPoint2, float delta = 0, float multiplier = 1)

Parameters

targetParam TargetParam

The target parameter of the current LayoutRect.

anchorPoint1 AnchorPoint

The first referenced AnchorPoint.

anchorPoint2 AnchorPoint

The second referenced AnchorPoint.

delta float

An increment to the value of the source distance.

multiplier float

A multiplier to the value of the source distance; applied before adding the delta.

Returns

SizeConstraint

New constraint just added.

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

Adds a SizeConstraint relative to anchorRect.

public SizeConstraint AppendSizeConstraint(TargetParam targetParam, LayoutRect anchorRect, AnchorParam anchorParam, float delta = 0, float multiplier = 1)

Parameters

targetParam TargetParam

The target parameter of the current LayoutRect.

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

delta float

An increment to the value of the source (anchor) parameter.

multiplier float

A multiplier to the value of the source parameter; applied before adding the delta.

Returns

SizeConstraint

New constraint just added.

AppendSizeConstraint(TargetParam, float)

public SizeConstraint AppendSizeConstraint(TargetParam targetParam, float size)

Parameters

targetParam TargetParam

The target parameter of the current LayoutRect.

size float

The proposed value of the width or height.

Returns

SizeConstraint

New constraint just added.

AppendStarSizeConstraint(TargetParam, float)

Adds a StarWidth or StarHeight constraint.

public StarSizeConstraint AppendStarSizeConstraint(TargetParam targetParam, float starSize)

Parameters

targetParam TargetParam

The target parameter of the current LayoutRect.

starSize float

The proposed star width or height (weight).

Returns

StarSizeConstraint

New constraint just added.

AsRectF()

Returns a System.Drawing.RectangleF with the same Width and Height as this LayoutRect.

public RectangleF AsRectF()

Returns

System.Drawing.RectangleF

The resulting System.Drawing.RectangleF.

Contains(LayoutRect)

Determines if the rectangular region represented by otherRect is entirely contained within this LayoutRect.

public bool Contains(LayoutRect otherRect)

Parameters

otherRect LayoutRect

The LayoutRect to test or null to reference the owner LayoutView.

Returns

bool

true if the rectangular region represented by otherRect is entirely contained within this LayoutRect; otherwise, false.

CreatePoint(float, float, float, float)

Creates a point to be used as an anchor for other LayoutRects.

public AnchorPoint CreatePoint(float widthFactor, float heightFactor, float leftOffset = 0, float topOffset = 0)

Parameters

widthFactor float

The value to be multiplied by Width before adding to the position of the left side.

heightFactor float

The value to be multiplied by Height before adding to the position of the top side.

leftOffset float

The value to be added to the position of the left side.

topOffset float

The value to be added to the position of the top side.

Returns

AnchorPoint

The created AnchorPoint object.

DetachFromView()

Detaches the LayoutRect from its owner LayoutView and removes all constraints referencing the LayoutRect.

public void DetachFromView()

GetAngleConstraint()

Searches for the AngleConstraint.

public AngleConstraint GetAngleConstraint()

Returns

AngleConstraint

GetAngleRelativeTo(LayoutRect)

Gets the rotation angle of the current LayoutRect from the standpoint of the targetRect.

public int GetAngleRelativeTo(LayoutRect targetRect)

Parameters

targetRect LayoutRect

A LayoutRect which defines the base angle or null to reference the owner LayoutView.

Returns

int

The relative angle, in degrees.

GetAspectRatioConstraint()

Searches for the AspectRatioConstraint.

public AspectRatioConstraint GetAspectRatioConstraint()

Returns

AspectRatioConstraint

GetConstraint(TargetParam, LayoutRect, AnchorParam)

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

public Constraint GetConstraint(TargetParam targetParam, LayoutRect anchorRect, AnchorParam anchorParam = AnchorParam.None)

Parameters

targetParam TargetParam

The target parameter of the Constraint to search for.

anchorRect LayoutRect

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

Constraint

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

GetConstraint(TargetParam)

Searches for the first constraint for the specified target parameter.

public Constraint GetConstraint(TargetParam targetParam)

Parameters

targetParam TargetParam

The target parameter of the Constraint to search for.

Returns

Constraint

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

GetContourConstraints()

Returns the list of ContourConstraints.

public List<ContourConstraint> GetContourConstraints()

Returns

System.Collections.Generic.List<T><ContourConstraint>

GetIntersectionRelativeToSelf(LayoutRect)

Returns a System.Drawing.RectangleF that represents the intersection of two rectangles, relative to this LayoutRect.

public RectangleF GetIntersectionRelativeToSelf(LayoutRect otherRect)

Parameters

otherRect LayoutRect

A LayoutRect which may have an intersection with this LayoutRect or null to reference the owner LayoutView.

Returns

System.Drawing.RectangleF

The resulting System.Drawing.RectangleF or an empty rectangle if there is no intersection.

GetIntersectionRelativeToView(LayoutRect)

Returns a System.Drawing.RectangleF that represents the intersection of two rectangles, relative to the view rectangle.

public RectangleF GetIntersectionRelativeToView(LayoutRect otherRect)

Parameters

otherRect LayoutRect

A LayoutRect which may have an intersection with this LayoutRect or null to reference the owner LayoutView.

Returns

System.Drawing.RectangleF

The resulting System.Drawing.RectangleF or an empty rectangle if there is no intersection.

GetPositionConstraint(TargetParam)

Searches for the first PositionConstraint for the specified target parameter.

public PositionConstraint GetPositionConstraint(TargetParam targetParam)

Parameters

targetParam TargetParam

Returns

PositionConstraint

GetSizeConstraint(TargetParam)

Searches for the first SizeConstraint for the specified target parameter.

public SizeConstraint GetSizeConstraint(TargetParam targetParam)

Parameters

targetParam TargetParam

Returns

SizeConstraint

GetStarSizeConstraint(TargetParam)

Searches for the StarSizeConstraint for the specified target parameter.

public StarSizeConstraint GetStarSizeConstraint(TargetParam targetParam)

Parameters

targetParam TargetParam

Returns

StarSizeConstraint

IntersectsWith(LayoutRect)

Determines if this LayoutRect intersects with otherRect.

public bool IntersectsWith(LayoutRect otherRect)

Parameters

otherRect LayoutRect

The LayoutRect to test or null to reference the owner LayoutView.

Returns

bool

true if there is any intersection; otherwise, false.

RemoveAllConstraints()

Detaches all constraints from the current LayoutRect.

public bool RemoveAllConstraints()

Returns

bool

true if one or more Constraints were successfully detached.

RemoveConstraint(Constraint)

Detaches the specified Constraint from the LayoutRect.

public bool RemoveConstraint(Constraint constraint)

Parameters

constraint Constraint

The Constraint to be detached.

Returns

bool

true if the Constraint is successfully detached.

RemoveConstraint(TargetParam)

Detaches the first constraint for the specified target parameter.

public bool RemoveConstraint(TargetParam targetParam)

Parameters

targetParam TargetParam

The target parameter of the Constraint to search for.

Returns

bool

true if the Constraint is found and successfully detached.

SetAngle(LayoutRect, int)

Adds an Angle constraint relative to anchorRect.

public AngleConstraint SetAngle(LayoutRect anchorRect, int relativeAngle = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

relativeAngle int

The rotation angle relative to anchorRect, in degrees.

Returns

AngleConstraint

New constraint just added.

SetAspectRatio(float)

Adds an AspectRatio constraint.

public AspectRatioConstraint SetAspectRatio(float aspectRatio)

Parameters

aspectRatio float

The aspect (width to height) ratio.

Returns

AspectRatioConstraint

New constraint just added.

SetBottom(AnchorPoint, float)

Adds a Bottom constraint relative to anchorPoint.

public PositionConstraint SetBottom(AnchorPoint anchorPoint, float offset = 0)

Parameters

anchorPoint AnchorPoint

The referenced AnchorPoint.

offset float

An increment to the position of anchorPoint.

Returns

PositionConstraint

New constraint just added.

SetBottom(LayoutRect, AnchorParam, float)

Adds a Bottom constraint relative to anchorRect.

public PositionConstraint SetBottom(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

SetBottomAndOpposite(LayoutRect, AnchorParam, float)

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

public PositionConstraint SetBottomAndOpposite(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

SetHeight(AnchorPoint, AnchorPoint, float, float)

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

public SizeConstraint SetHeight(AnchorPoint anchorPoint1, AnchorPoint anchorPoint2, float delta = 0, float multiplier = 1)

Parameters

anchorPoint1 AnchorPoint

The first referenced AnchorPoint.

anchorPoint2 AnchorPoint

The second referenced AnchorPoint.

delta float

An increment to the value of the source distance.

multiplier float

A multiplier to the value of the source distance; applied before adding the delta.

Returns

SizeConstraint

New constraint just added.

SetHeight(LayoutRect, AnchorParam, float, float)

Adds a Height constraint relative to anchorRect.

public SizeConstraint SetHeight(LayoutRect anchorRect, AnchorParam anchorParam, float delta = 0, float multiplier = 1)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

delta float

An increment to the value of the source (anchor) parameter.

multiplier float

A multiplier to the value of the source parameter; applied before adding the delta.

Returns

SizeConstraint

New constraint just added.

SetHeight(float)

Adds a Height constraint.

public SizeConstraint SetHeight(float height)

Parameters

height float

The proposed height.

Returns

SizeConstraint

New constraint just added.

SetHorizontalCenter(AnchorPoint, float)

Adds a HorizontalCenter constraint relative to anchorPoint.

public PositionConstraint SetHorizontalCenter(AnchorPoint anchorPoint, float offset = 0)

Parameters

anchorPoint AnchorPoint

The referenced AnchorPoint.

offset float

An increment to the position of anchorPoint.

Returns

PositionConstraint

New constraint just added.

SetHorizontalCenter(LayoutRect, AnchorParam, float)

Adds a HorizontalCenter constraint relative to anchorRect.

public PositionConstraint SetHorizontalCenter(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

SetLeft(AnchorPoint, float)

Adds a Left constraint relative to anchorPoint.

public PositionConstraint SetLeft(AnchorPoint anchorPoint, float offset = 0)

Parameters

anchorPoint AnchorPoint

The referenced AnchorPoint.

offset float

An increment to the position of anchorPoint.

Returns

PositionConstraint

New constraint just added.

SetLeft(LayoutRect, AnchorParam, float)

Adds a Left constraint relative to anchorRect.

public PositionConstraint SetLeft(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

SetLeftAndOpposite(LayoutRect, AnchorParam, float)

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

public PositionConstraint SetLeftAndOpposite(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

SetRight(AnchorPoint, float)

Adds a Right constraint relative to anchorPoint.

public PositionConstraint SetRight(AnchorPoint anchorPoint, float offset = 0)

Parameters

anchorPoint AnchorPoint

The referenced AnchorPoint.

offset float

An increment to the position of anchorPoint.

Returns

PositionConstraint

New constraint just added.

SetRight(LayoutRect, AnchorParam, float)

Adds a Right constraint relative to anchorRect.

public PositionConstraint SetRight(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

SetRightAndOpposite(LayoutRect, AnchorParam, float)

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

public PositionConstraint SetRightAndOpposite(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

SetStarHeight(float)

Adds a StarHeight constraint.

public StarSizeConstraint SetStarHeight(float starHeight)

Parameters

starHeight float

The proportional height (weight).

Returns

StarSizeConstraint

New constraint just added.

SetStarWidth(float)

Adds a StarWidth constraint.

public StarSizeConstraint SetStarWidth(float starWidth)

Parameters

starWidth float

The proportional width (weight).

Returns

StarSizeConstraint

New constraint just added.

SetTop(AnchorPoint, float)

Adds a Top constraint relative to anchorPoint.

public PositionConstraint SetTop(AnchorPoint anchorPoint, float offset = 0)

Parameters

anchorPoint AnchorPoint

The referenced AnchorPoint.

offset float

An increment to the position of anchorPoint.

Returns

PositionConstraint

New constraint just added.

SetTop(LayoutRect, AnchorParam, float)

Adds a Top constraint relative to anchorRect.

public PositionConstraint SetTop(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

SetTopAndOpposite(LayoutRect, AnchorParam, float)

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

public PositionConstraint SetTopAndOpposite(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

SetVerticalCenter(AnchorPoint, float)

Adds a VerticalCenter constraint relative to anchorPoint.

public PositionConstraint SetVerticalCenter(AnchorPoint anchorPoint, float offset = 0)

Parameters

anchorPoint AnchorPoint

The referenced AnchorPoint.

offset float

An increment to the position of anchorPoint.

Returns

PositionConstraint

New constraint just added.

SetVerticalCenter(LayoutRect, AnchorParam, float)

Adds a VerticalCenter constraint relative to anchorRect.

public PositionConstraint SetVerticalCenter(LayoutRect anchorRect, AnchorParam anchorParam, float offset = 0)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

offset float

An increment to the value of the source parameter.

Returns

PositionConstraint

New constraint just added.

SetWidth(AnchorPoint, AnchorPoint, float, float)

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

public SizeConstraint SetWidth(AnchorPoint anchorPoint1, AnchorPoint anchorPoint2, float delta = 0, float multiplier = 1)

Parameters

anchorPoint1 AnchorPoint

The first referenced AnchorPoint.

anchorPoint2 AnchorPoint

The second referenced AnchorPoint.

delta float

An increment to the value of the source distance.

multiplier float

A multiplier to the value of the source distance; applied before adding the delta.

Returns

SizeConstraint

New constraint just added.

SetWidth(LayoutRect, AnchorParam, float, float)

Adds a Width constraint relative to anchorRect.

public SizeConstraint SetWidth(LayoutRect anchorRect, AnchorParam anchorParam, float delta = 0, float multiplier = 1)

Parameters

anchorRect LayoutRect

The referenced LayoutRect or null to reference the owner LayoutView.

anchorParam AnchorParam

The source parameter of the anchorRect.

delta float

An increment to the value of the source (anchor) parameter.

multiplier float

A multiplier to the value of the source parameter; applied before adding the delta.

Returns

SizeConstraint

New constraint just added.

SetWidth(float)

Adds a Width constraint.

public SizeConstraint SetWidth(float width)

Parameters

width float

The proposed width.

Returns

SizeConstraint

New constraint just added.

ToRectangleF(LayoutRect)

Converts a LayoutRect to System.Drawing.RectangleF relative to the targetRect.

public RectangleF ToRectangleF(LayoutRect targetRect = null)

Parameters

targetRect LayoutRect

A LayoutRect which defines the base angle and position or null to reference the owner LayoutView.

Returns

System.Drawing.RectangleF

The resulting System.Drawing.RectangleF.

ToString()

Returns a string that represents the current LayoutRect.

public override string ToString()

Returns

string