VegaRise.NET
HomeAPI Reference
Back to DOM

LineSpacingRuleValuesEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

Specifies how the line spacing value is interpreted.

Remarks

Used by . The rule determines whether the property is a multiple of the font size (Auto), an exact size (Exact), or a minimum size (AtLeast). Spacing.LineRule Line

Examples

csharp
1// 1. Auto (multiple-of-font-size) line spacing
2var spacing = new Spacing { LineRule = LineSpacingRuleValues.Auto, Line = 1.15 };
3
csharp
1// 2. Exact line height
2var spacing = new Spacing { LineRule = LineSpacingRuleValues.Exact, Line = 18 };
3
csharp
1// 3. Minimum line height
2var spacing = new Spacing { LineRule = LineSpacingRuleValues.AtLeast, Line = 14 };
3
csharp
1// 4. Apply to a paragraph style
2var style = new ParagraphStyle
3{
4 SpacingBetweenLines = new Spacing { LineRule = LineSpacingRuleValues.Auto, Line = 1.2 }
5};
6

Fields

AtLeast

Minimum line height.

Auto

Automatically determined line height (as a multiple).

Exact

Exact line height.