VegaRise.NET
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.

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.