PdfRectangle Class
Represents a rectangle used to describe locations on a page and bounding boxes for a variety of objects.
public sealed class PdfRectangle : PdfObject, IEquatable<PdfRectangle>
Public NotInheritable Class PdfRectangle
Inherits PdfObject
Implements IEquatable(Of PdfRectangle)
- Inheritance:
- System.ObjectPdfRectangle
Implements
Properties
Bottom
Gets the bottom Y coordinate of the rectangle.
Property Value
- System.Double
The bottom Y coordinate of the rectangle.
Height
Gets the height of the rectangle.
Property Value
- System.Double
The height of the rectangle.
Left
Gets the left X coordinate of the rectangle.
Property Value
- System.Double
The left X coordinate of the rectangle.
Right
Gets the right X coordinate of the rectangle.
Property Value
- System.Double
The right X coordinate of the rectangle.
Top
Gets the top Y coordinate of the rectangle.
Property Value
- System.Double
The top Y coordinate of the rectangle.
Width
Gets the width of the rectangle.
Property Value
- System.Double
The width of the rectangle.
Methods
Equals(PdfRectangle)
Determines whether the other
PdfRectangle is equal to this PdfRectangle instance.
public bool Equals(PdfRectangle other)
Public Function Equals(other As PdfRectangle) As Boolean
Parameters
other
- PdfRectangle
The other rectangle to compare with this rectangle instance.
Returns
- System.Boolean
true if the other
PdfRectangle is equal to this PdfRectangle instance; otherwise, false.
Equals(Object)
Determines whether the specified System.Object is equal to this PdfRectangle instance.
public override bool Equals(object obj)
Public Overrides Function Equals(obj As Object) As Boolean
Parameters
obj
- System.Object
The System.Object to compare with this PdfRectangle instance.
Returns
- System.Boolean
true if the specified System.Object is equal to this PdfRectangle instance; otherwise, false.
Overrides
GetHashCode()
Returns a hash code for this PdfRectangle instance.
Returns
- System.Int32
A hash code for this PdfRectangle instance, suitable for use in hashing algorithms and data structures like a hash table.
Overrides
ToString()
Returns a System.String that represents this PdfRectangle instance.
Returns
- System.String
A System.String that represents this PdfRectangle instance.
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
Inherited Properties
Metadata | (Optional; PDF 1.4) A metadata stream containing metadata for the component. (Inherited from PdfObject) |