VegaRise.NET
Back to DOM

PenAlignmentValuesEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

Specifies the alignment of a pen along a path.

Remarks

Used by . Center draws the stroke half in and half out of the glyph edge; Inset draws it entirely inside the glyph. TextOutlineEffect.PenAlignment

Examples

csharp
1// 1. Centered stroke
2var outline = new TextOutlineEffect { PenAlignment = PenAlignmentValues.Center };
3
csharp
1// 2. Inset stroke
2var outline = new TextOutlineEffect { PenAlignment = PenAlignmentValues.Inset };
3
csharp
1// 3. Centered stroke with thick line
2var outline = new TextOutlineEffect { PenAlignment = PenAlignmentValues.Center, LineWidth = 3 };
3
csharp
1// 4. Inset stroke for a tighter outline
2var outline = new TextOutlineEffect { PenAlignment = PenAlignmentValues.Inset, LineWidth = 2 };
3

Fields

Center

Stroke centered on the path.

Inset

Stroke drawn inside the path.

VegaRiseVDocs.NET

Create Account

Create your VDocs account.

or

Already have an account? Sign in