PdfTableColumnWidth Struct
The width of a column of a PdfTable: fixed, relative or automatic. The default value is PdfTableColumnWidth.Auto.
public readonly struct PdfTableColumnWidth : IEquatable<PdfTableColumnWidth>- Implements
Properties
| Name | Description |
|---|---|
| Auto | Gets the width of the content of the column. |
| Type | Gets how the width is computed. |
| Value | Gets the width in points of a fixed column, the weight of a relative column, or 0 for an automatic column. |
Gets the width of the content of the column.
public static PdfTableColumnWidth Auto { get; }Property value
Methods
| Name | Description |
|---|---|
| Equals(PdfTableColumnWidth) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| Fixed(double) | Creates a width in points. |
| GetHashCode() | Returns the hash code for this instance. |
| Relative(double) | Creates a share of the width left by the fixed and automatic columns. |
| ToString() | Returns the fully qualified type name of this instance. |
Equals overloads
Equals(PdfTableColumnWidth)
PdfTableColumnWidth.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(PdfTableColumnWidth other)Parameters
otherPdfTableColumnWidth- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
PdfTableColumnWidth.csFixed(double)
PdfTableColumnWidth.csCreates a width in points.
public static PdfTableColumnWidth Fixed(double points)GetHashCode()
PdfTableColumnWidth.csRelative(double)
PdfTableColumnWidth.csCreates a share of the width left by the fixed and automatic columns.
public static PdfTableColumnWidth Relative(double weight = 1d)Parameters
weightdouble- The weight of the column, more than 0: a column of weight 2 is twice as wide as a column of weight 1.
Returns
PdfTableColumnWidth The width.
ToString()
PdfTableColumnWidth.csOperators
| Name | Description |
|---|---|
| operator ==(PdfTableColumnWidth, PdfTableColumnWidth) | Indicates whether two widths are equal. |
| operator !=(PdfTableColumnWidth, PdfTableColumnWidth) | Indicates whether two widths are different. |
operator ==(PdfTableColumnWidth, PdfTableColumnWidth)
PdfTableColumnWidth.csIndicates whether two widths are equal.
public static bool operator ==(PdfTableColumnWidth left, PdfTableColumnWidth right)Parameters
leftPdfTableColumnWidth- The first width.
rightPdfTableColumnWidth- The second width.
Returns
bool true when the widths are equal.
operator !=(PdfTableColumnWidth, PdfTableColumnWidth)
PdfTableColumnWidth.csIndicates whether two widths are different.
public static bool operator !=(PdfTableColumnWidth left, PdfTableColumnWidth right)Parameters
leftPdfTableColumnWidth- The first width.
rightPdfTableColumnWidth- The second width.
Returns
bool true when the widths are different.