Struct PdfPadding
Padding around a rectangular area, used by annotation appearance layout and form-field widget insets.
Implements
Inherited Members
Namespace: DRIT.Pdf
Assembly: DRIT.Pdf.dll
Syntax
public readonly struct PdfPadding : IEquatable<PdfPadding>
Constructors
PdfPadding(double)
Initializes padding with uniform values on all sides.
Declaration
public PdfPadding(double all)
Parameters
| Type | Name | Description |
|---|---|---|
| double | all |
PdfPadding(double, double)
Initializes padding with horizontal and vertical values.
Declaration
public PdfPadding(double horizontal, double vertical)
Parameters
| Type | Name | Description |
|---|---|---|
| double | horizontal | |
| double | vertical |
PdfPadding(double, double, double, double)
Initializes padding with individual side values.
Declaration
public PdfPadding(double left, double top, double right, double bottom)
Parameters
| Type | Name | Description |
|---|---|---|
| double | left | |
| double | top | |
| double | right | |
| double | bottom |
Fields
Zero
Zero padding on all sides.
Declaration
public static readonly PdfPadding Zero
Field Value
| Type | Description |
|---|---|
| PdfPadding |
Properties
Bottom
Gets the bottom padding in points.
Declaration
public double Bottom { get; }
Property Value
| Type | Description |
|---|---|
| double |
Left
Gets the left padding in points.
Declaration
public double Left { get; }
Property Value
| Type | Description |
|---|---|
| double |
Right
Gets the right padding in points.
Declaration
public double Right { get; }
Property Value
| Type | Description |
|---|---|
| double |
Top
Gets the top padding in points.
Declaration
public double Top { get; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
Equals(PdfPadding)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(PdfPadding other)
Parameters
| Type | Name | Description |
|---|---|---|
| PdfPadding | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current instance. |
Returns
| Type | Description |
|---|---|
| bool | true if |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
operator ==(PdfPadding, PdfPadding)
Equality operator.
Declaration
public static bool operator ==(PdfPadding a, PdfPadding b)
Parameters
| Type | Name | Description |
|---|---|---|
| PdfPadding | a | |
| PdfPadding | b |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(PdfPadding, PdfPadding)
Inequality operator.
Declaration
public static bool operator !=(PdfPadding a, PdfPadding b)
Parameters
| Type | Name | Description |
|---|---|---|
| PdfPadding | a | |
| PdfPadding | b |
Returns
| Type | Description |
|---|---|
| bool |