TableWidth Struct
Represents a table width encapsulating table width value and table width measurement unit.
public struct TableWidth : IEquatable<TableWidth>
Public Structure TableWidth
Implements IEquatable(Of TableWidth)
Implements
Constructors
TableWidth(Double, TableWidthUnit)
Initializes a new instance of the TableWidth struct with specified value and measurement unit.
public TableWidth(double value, TableWidthUnit unit)
Public Sub New(value As Double, unit As TableWidthUnit)
Parameters
value
- System.Double
The table width value.
unit
- TableWidthUnit
The table width measurement unit.
Fields
Auto
Represents an automatic table width.
Field Value
Properties
Unit
Gets the table width measurement unit.
Property Value
The table width measurement unit.
Value
Gets the table width value.
Property Value
- System.Double
The table width value (in unit specified in Unit property).
Methods
Equals(TableWidth)
Determines whether the other
TableWidth is equal to this TableWidth instance.
Parameters
other
- TableWidth
The other table width to compare with this table width instance.
Returns
- System.Boolean
true if the other
TableWidth is equal to this TableWidth instance; otherwise, false.
Equals(Object)
Determines whether the specified System.Object is equal to this SingleBorder 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 border instance.
Returns
- System.Boolean
true if the specified System.Object is a SingleBorder and is equal to this SingleBorder instance; otherwise, false.
Overrides
GetHashCode()
Returns a hash code for this TableWidth instance.
Returns
- System.Int32
An integer value that specifies a hash value for this TableWidth instance.
Overrides
ToString()
Returns a System.String that represents this TableWidth instance.
Returns
- System.String
A System.String that represents this TableWidth instance.
Overrides
Operators
Equality(TableWidth, TableWidth)
Determines whether first
and second
TableWidths are equal.
public static bool operator ==(TableWidth first, TableWidth second)
Public Shared Operator =(first As TableWidth, second As TableWidth) As Boolean
Parameters
first
- TableWidth
The first table width.
second
- TableWidth
The second table width.
Returns
- System.Boolean
true if first
and second
table widths are equal; otherwise, false.
Inequality(TableWidth, TableWidth)
Determines whether first
and second
TableWidths are not equal.
public static bool operator !=(TableWidth first, TableWidth second)
Public Shared Operator <>(first As TableWidth, second As TableWidth) As Boolean
Parameters
first
- TableWidth
The first table width.
second
- TableWidth
The second table width.
Returns
- System.Boolean
true if first
and second
table widths are not equal; otherwise, false.