[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.ObjectRect

ObjectRect Class

Represents a rectangular area occupied by an embedded object.

Inheritance
ObjectRect
Namespace: GrapeCity.Documents.Text
Assembly: DS.Documents.Imaging.dll
Syntax
public class ObjectRect
Public Class ObjectRect

Constructors

Name Description
ObjectRect()

Initializes a new instance of the ObjectRect class.

ObjectRect(ObjectRect)

Initializes a new instance of the ObjectRect class from another instance of ObjectRect.

ObjectRect(PointF, SizeF)

Initializes a new instance of the ObjectRect class with the specified location and size.

ObjectRect(RectangleF)

Initializes a new instance of the ObjectRect class from a RectangleF.

ObjectRect(float, float, float, float)

Initializes a new instance of the ObjectRect class with the specified coordinates and size.

Properties

Name Description
Bottom

Gets or sets the y-coordinate of the bottom edge of this ObjectRect, in graphic units.

Height

Gets or sets the height of this ObjectRect, in graphic units.

Left

Gets or sets the x-coordinate of the left edge of this ObjectRect, in graphic units.

Right

Gets or sets the x-coordinate of the right edge of this ObjectRect, in graphic units.

Tag

Gets or sets the custom data associated with this ObjectRect.

Top

Gets or sets the y-coordinate of the top edge of this ObjectRect, in graphic units.

Width

Gets or sets the width of this ObjectRect, in graphic units.

X

Gets or sets the x-coordinate of the left edge of this ObjectRect, in graphic units.

Y

Gets or sets the y-coordinate of the top edge of this ObjectRect, in graphic units.

Methods

Name Description
Contains(float, float)

Determines if the specified point is contained within this rectangle.

FromLTRB(float, float, float, float)

Creates an instance of ObjectRect from (left, top, right, bottom) coordinates.

Inflate(float, float)

Inflates the rectangle by the specified amount.

IntersectsWith(ObjectRect)

Determines if this rectangle intersects with rect.

Offset(float, float)

Offsets the rectangle by the specified amount.

Scale(float)

Scales all coordinates of a rectangle by the specified scaleFactor.

Scale(float, float)

Scales all coordinates of a rectangle by the specified scaleX and scaleY.

ToRectangleF()

Converts an ObjectRect to RectangleF.

Operators

Name Description
explicit operator RectangleF(ObjectRect)

Performs an explicit conversion from ObjectRect to RectangleF.

explicit operator ObjectRect(RectangleF)

Performs an explicit conversion from RectangleF to ObjectRect.