WordLineSpacing
OfficeIMO.Word
Word line spacing expressed as a line multiple or a physical line height.
Inheritance
- ValueType
- WordLineSpacing
Remarks
Default is an explicit zero multiple. Native quantization occurs when assigned to a paragraph.
Usage
Explore 10 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 5
- Method WordLineSpacing.AtLeast
- Method WordLineSpacing.Exact
- Method WordLineSpacing.Multiple
- Property WordParagraph.LineSpacing
- Property WordParagraphInfo.LineSpacing
Accepted by parameters 5
- Method WordLineSpacing.Equals
- Method WordLineSpacing.op_Equality
- Method WordLineSpacing.op_Equality
- Method WordLineSpacing.op_Inequality
- Method WordLineSpacing.op_Inequality
Methods
public static WordLineSpacing AtLeast(OfficeLength height) #Creates a minimum physical line height; zero remains explicit.
Parameters
- height OfficeIMO.OfficeLength
Returns
WordLineSpacingpublic bool Equals(WordLineSpacing other) #Indicates whether the current object is equal to another object of the same type.
Parameters
- other OfficeIMO.Word.WordLineSpacing
- 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 static WordLineSpacing Exact(OfficeLength height) #Creates a fixed physical line height; zero remains explicit.
Parameters
- height OfficeIMO.OfficeLength
Returns
WordLineSpacingpublic 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 WordLineSpacing Multiple(double value) #Creates automatic spacing. One means single spacing; zero remains an explicit authored zero.
Parameters
- value double
Returns
WordLineSpacingpublic static bool op_Equality(WordLineSpacing left, WordLineSpacing right) #Compares spacing values, including their interpretation.
Parameters
- left OfficeIMO.Word.WordLineSpacing
- right OfficeIMO.Word.WordLineSpacing
Returns
boolpublic static bool op_Inequality(WordLineSpacing left, WordLineSpacing right) #Compares spacing values, including their interpretation.
Parameters
- left OfficeIMO.Word.WordLineSpacing
- right OfficeIMO.Word.WordLineSpacing
Returns
boolInherited Methods
Properties
public WordLineSpacingRule Rule { get; } #Gets the spacing interpretation; it cannot be changed independently of the value.
public double? MultipleValue { get; } #Gets a line multiple for automatic spacing, otherwise null.
public OfficeLength? Height { get; } #Gets a physical height for exact or minimum spacing, otherwise null.