WordTableWidth
OfficeIMO.Word
A Word preferred width expressed as a physical length, human percentage, Auto or Nil.
Inheritance
- ValueType
- WordTableWidth
Remarks
Default is an explicit zero length. This preference is independent of actual grid geometry. Lengths are quantized to twips and percentages to fiftieths of a percent when assigned.
Usage
Explore 12 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 7
- Property WordTable.ColumnWidth
- Property WordTable.Width
- Property WordTableCell.Width
- Method WordTableWidth.Length
- Method WordTableWidth.Percent
- Property WordTableWidth.Auto
- Property WordTableWidth.Nil
Accepted by parameters 5
- Method WordTableWidth.Equals
- Method WordTableWidth.op_Equality
- Method WordTableWidth.op_Equality
- Method WordTableWidth.op_Inequality
- Method WordTableWidth.op_Inequality
Methods
public bool Equals(WordTableWidth other) #Indicates whether the current object is equal to another object of the same type.
Parameters
- other OfficeIMO.Word.WordTableWidth
- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.public override bool Equals(object? obj) #Indicates whether this instance and a specified object are equal.
Parameters
- obj object?
- The object to compare with the current instance.
Returns
bool true if obj and this instance are the same type and represent the same value; otherwise, false.public override int GetHashCode() #Returns the hash code for this instance.
Returns
int A 32-bit signed integer that is the hash code for this instance.public static WordTableWidth Length(OfficeLength value) #Creates a nonnegative physical preference within the native signed twip range.
Parameters
- value OfficeIMO.OfficeLength
Returns
WordTableWidthpublic static bool op_Equality(WordTableWidth left, WordTableWidth right) #Compares both interpretation and payload.
Parameters
- left OfficeIMO.Word.WordTableWidth
- right OfficeIMO.Word.WordTableWidth
Returns
boolpublic static bool op_Inequality(WordTableWidth left, WordTableWidth right) #Compares both interpretation and payload.
Parameters
- left OfficeIMO.Word.WordTableWidth
- right OfficeIMO.Word.WordTableWidth
Returns
boolpublic static WordTableWidth Percent(double value) #Creates a nonnegative finite percentage. Values above 100 are supported within the native range.
Parameters
- value double
Returns
WordTableWidthInherited Methods
Properties
public WordTableWidthKind Kind { get; } #Gets the interpretation, which cannot be mutated independently of the payload.
public OfficeLength? LengthValue { get; } #Gets the physical width, or null for a nonphysical preference.
public double? PercentValue { get; } #Gets the human percentage (37 means 37%), or null for another interpretation.
public static WordTableWidth Nil { get; } #Gets an explicit native nil preference.