XRect StructureTerminal Works - PDF Printing.Net Library
Stores a set of four floating-point numbers that represent the location and size of a rectangle.

Namespace: PdfEdit.Drawing
Assembly: PdfPrintingNet (in PdfPrintingNet.dll) Version: 5.1.1.0 (5.1.1.0)
Syntax

[SerializableAttribute]
public struct XRect : IFormattable

The XRect type exposes the following members.

Constructors

  NameDescription
Public methodXRect(RectangleF)
Initializes a new instance of the XRect class.
Public methodXRect(XSize)
Initializes a new instance of the XRect class.
Public methodXRect(PointF, SizeF)
Initializes a new instance of the XRect class.
Public methodXRect(XPoint, XPoint)
Initializes a new instance of the XRect class.
Public methodXRect(XPoint, XSize)
Initializes a new instance of the XRect class.
Public methodXRect(XPoint, XVector)
Initializes a new instance of the XRect class.
Public methodXRect(Double, Double, Double, Double)
Initializes a new instance of the XRect class.
Top
Methods

  NameDescription
Public methodContains(XPoint)
Indicates whether the rectangle contains the specified point.
Public methodContains(XRect)
Indicates whether the rectangle contains the specified rectangle.
Public methodContains(Double, Double)
Indicates whether the rectangle contains the specified point.
Public methodEquals(Object)
Determines whether this instance and the specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(XRect)
Determines whether this instance and the specified rect are equal.
Public methodStatic memberEquals(XRect, XRect)
Determines whether the two rectangles are equal.
Public methodStatic memberFromLTRB
Creates a rectangle from for straight lines.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInflate(XSize)
Expands the rectangle by using the specified Size, in all directions.
Public methodInflate(Double, Double)
Expands or shrinks the rectangle by using the specified width and height amounts, in all directions.
Public methodStatic memberInflate(XRect, XSize)
Returns the rectangle that results from expanding the specified rectangle by the specified Size, in all directions.
Public methodStatic memberInflate(XRect, Double, Double)
Creates a rectangle that results from expanding or shrinking the specified rectangle by the specified width and height amounts, in all directions.
Public methodIntersect(XRect)
Sets current rectangle to the intersection of the current rectangle and the specified rectangle.
Public methodStatic memberIntersect(XRect, XRect)
Returns the intersection of two rectangles.
Public methodIntersectsWith
Indicates whether the specified rectangle intersects with the current rectangle.
Public methodOffset(XVector)
Moves a rectangle by the specified amount.
Public methodOffset(Double, Double)
Moves a rectangle by the specified amount.
Public methodStatic memberOffset(XRect, XVector)
Returns a rectangle that is offset from the specified rectangle by using the specified vector.
Public methodStatic memberOffset(XRect, Double, Double)
Returns a rectangle that is offset from the specified rectangle by using specified horizontal and vertical amounts.
Public methodStatic memberParse
Parses the rectangle from a string.
Public methodScale
Multiplies the size of the current rectangle by the specified x and y values.
Public methodToRectangleF
Converts this instance to a System.Drawing.RectangleF.
Public methodToString
Converts this XRect to a human readable string.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Converts this XRect to a human readable string.
Public methodTransform(XMatrix)
Transforms the rectangle by applying the specified matrix.
Public methodStatic memberTransform(XRect, XMatrix)
Returns the rectangle that results from applying the specified matrix to the specified rectangle.
Public methodUnion(XPoint)
Sets current rectangle to the union of the current rectangle and the specified point.
Public methodUnion(XRect)
Sets current rectangle to the union of the current rectangle and the specified rectangle.
Public methodStatic memberUnion(XRect, XPoint)
Returns the intersection of a rectangle and a point.
Public methodStatic memberUnion(XRect, XRect)
Returns the union of two rectangles.
Top
Operators

  NameDescription
Public operatorStatic memberAddition
Translates the rectangle by adding the specified point.
Public operatorStatic memberEquality
Determines whether the two rectangles are equal.
Public operatorStatic member(Rectangle to XRect)
Performs an implicit conversion from a System.Drawing.Rectangle to an XRect.
Public operatorStatic member(RectangleF to XRect)
Performs an implicit conversion from a System.Drawing.RectangleF to an XRect.
Public operatorStatic memberInequality
Determines whether the two rectangles are not equal.
Public operatorStatic memberSubtraction
Translates the rectangle by subtracting the specified point.
Top
Properties

  NameDescription
Public propertyBottom
Gets the y-axis value of the bottom side of the rectangle.
Public propertyBottomLeft
Gets the position of the bottom-left corner of the rectangle.
Public propertyBottomRight
Gets the position of the bottom-right corner of the rectangle.
Public propertyCenter
Gets the center of the rectangle.
Public propertyStatic memberEmpty
Gets the empty rectangle.
Public propertyHeight
Gets or sets the height of the rectangle.
Public propertyIsEmpty
Gets a value indicating whether this instance is empty.
Public propertyLeft
Gets the x-axis value of the left side of the rectangle.
Public propertyLocation
Gets or sets the location of the rectangle.
Public propertyRight
Gets the x-axis value of the right side of the rectangle.
Public propertySize
Gets or sets the size of the rectangle.
Public propertyTop
Gets the y-axis value of the top side of the rectangle.
Public propertyTopLeft
Gets the position of the top-left corner of the rectangle.
Public propertyTopRight
Gets the position of the top-right corner of the rectangle.
Public propertyWidth
Gets or sets the width of the rectangle.
Public propertyX
Gets or sets the X value of the rectangle.
Public propertyY
Gets or sets the Y value of the rectangle.
Top
See Also

Reference