Click or drag to resize
Pdftools logo

Rectangle Structure

Struct that represents a rectangle that is based on a position (origin) of type Point and a size of type Size that spans the rectangle.
Inheritance Hierarchy
SystemObject
  SystemValueType
    PdfTools.Geometry.UnitsRectangle

Namespace: PdfTools.Geometry.Units
Assembly: PdfTools (in PdfTools.dll) Version: 1.7.0+cfcc11b476b3e1eb4320f0f37269191f64e36bd8
Syntax
C#
public struct Rectangle

The Rectangle type exposes the following members.

Properties
 NameDescription
Public propertyBottom

Get the bottom coordinate of the rectangle as Length object.

Public propertyLeft

Get the left coordinate of the rectangle as Length object.

Public propertyPosition

Get the position (origin) of the rectangle as Point object.

Public propertyRight

Get the right coordinate of the rectangle as Length object.

Public propertySize

Get the size of the rectangle as Size object.

Public propertyTop

Get the top coordinate of the rectangle as Length object.

Public propertyStatic memberZero 
Top
Methods
 NameDescription
Public methodStatic membercm Create a Rectangle object with the unit of the rectangles in centimetre (symbol cm, equal to 0.01m).
Public methodContains Determines whether another rectangle is non-strictly inscribed into the present rectangle.
Public methodEquals
(Overrides ValueTypeEquals(Object))
Public methodStatic memberFromEdges Create a Rectangle object from the four edges left, bottom, right and top as Length objects.
Public methodStatic memberFromLengths Create a Rectangle object with the rectangles as Length objects.
Public methodStatic memberFromPositionAndSize Create a Rectangle object from a Point object as the position of the origin and the size as a Size object.
Public methodGetHashCode
(Overrides ValueTypeGetHashCode)
Public methodStatic memberin Create a Rectangle object with the unit of the rectangles in inch (symbol in, equal to 25.4mm or 72pt).
Public methodStatic memberkm Create a Rectangle object with the unit of the rectangles in kilometre (symbol km, equal to 1000m).
Public methodStatic memberm Create a Rectangle object with the unit of the rectangles in metre (symbol m, is the SI unit of length).
Public methodStatic membermm Create a Rectangle object with the unit of the rectangles in millimetre (symbol mm, equal to 0.001m).
Public methodStatic memberParse Create a Rectangle object from a string representation.
Public methodStatic memberpt Create a Rectangle object with the unit of the rectangles in point (symbol pt, is the default unit used in PDF documents, equal to 1/72in or 25.4/72mm).
Public methodToString Creates a string representation as x-y-width-height-tuple with associated suitable metric units "m", "cm" or "mm".
(Overrides ValueTypeToString)
Public methodStatic memberum Create a Rectangle object with the unit of the rectangles in micrometre (symbol um, equal to 0.000001m).
Top
See Also