Click or drag to resize
Pdftools logo

Rectangle Methods

The Rectangle type exposes the following members.

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