Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

WordTableWidth

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
e163ccb36643 with working tree changes
Base
ValueType
Implements
IEquatable<WordTableWidth>
Modifiers
sealed

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.

Accepted by parameters 5

Methods

Equals 2 overloads
public bool Equals(WordTableWidth other) #

Indicates whether the current object is equal to another object of the same type.

Parameters

other OfficeIMO.Word.WordTableWidth required
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? required
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 required
public static bool op_Equality(WordTableWidth left, WordTableWidth right) #

Compares both interpretation and payload.

Parameters

left OfficeIMO.Word.WordTableWidth required
right OfficeIMO.Word.WordTableWidth required

Returns

bool
public static bool op_Inequality(WordTableWidth left, WordTableWidth right) #

Compares both interpretation and payload.

Parameters

left OfficeIMO.Word.WordTableWidth required
right OfficeIMO.Word.WordTableWidth required

Returns

bool
public static WordTableWidth Percent(double value) #

Creates a nonnegative finite percentage. Values above 100 are supported within the native range.

Parameters

value double required

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 Auto { get; } #

Gets automatic width selection.

public static WordTableWidth Nil { get; } #

Gets an explicit native nil preference.