Table of Contents

Constructor VectorPath

Namespace
DocWright.Core.Rendering
Assembly
DocWright.Core.dll

VectorPath(IReadOnlyList<VectorPathSegment>, ColorRgb?, int, ColorRgb?, int, Twips, IReadOnlyList<Twips>?, VectorFillRule, VectorLineCap, VectorLineJoin, bool)

Initializes a vector path.

public VectorPath(IReadOnlyList<VectorPathSegment> segments, ColorRgb? fillColor, int fillAlpha, ColorRgb? strokeColor, int strokeAlpha, Twips strokeWidth, IReadOnlyList<Twips>? strokeDashPattern = null, VectorFillRule fillRule = VectorFillRule.NonZero, VectorLineCap lineCap = VectorLineCap.Butt, VectorLineJoin lineJoin = VectorLineJoin.Miter, bool behindText = false)

Parameters

segments IReadOnlyList<VectorPathSegment>

The path segments in order.

fillColor ColorRgb?

The interior color, or null when unfilled.

fillAlpha int

Fill opacity in thousandths of a percent (0..100000).

strokeColor ColorRgb?

The outline color, or null when unstroked.

strokeAlpha int

Stroke opacity in thousandths of a percent (0..100000).

strokeWidth Twips

The outline width in twips.

strokeDashPattern IReadOnlyList<Twips>

The dash pattern in twips, or null for solid.

fillRule VectorFillRule

How the interior is determined.

lineCap VectorLineCap

How stroked subpath ends are drawn.

lineJoin VectorLineJoin

How stroked segments meet.

behindText bool

True when the path paints behind text.

VectorPath(IReadOnlyList<VectorPathSegment>, ColorRgb?, int, ColorRgb?, int, Twips, GradientFill?, PatternFill?, IReadOnlyList<Twips>?, VectorFillRule, VectorLineCap, VectorLineJoin, bool)

Initializes a vector path with a gradient or pattern interior.

public VectorPath(IReadOnlyList<VectorPathSegment> segments, ColorRgb? fillColor, int fillAlpha, ColorRgb? strokeColor, int strokeAlpha, Twips strokeWidth, GradientFill? gradient, PatternFill? pattern, IReadOnlyList<Twips>? strokeDashPattern = null, VectorFillRule fillRule = VectorFillRule.NonZero, VectorLineCap lineCap = VectorLineCap.Butt, VectorLineJoin lineJoin = VectorLineJoin.Miter, bool behindText = false)

Parameters

segments IReadOnlyList<VectorPathSegment>

The path segments in order.

fillColor ColorRgb?

The flat interior color, or null when unfilled. When gradient or pattern is supplied this is the color a renderer that cannot paint that interior falls back to.

fillAlpha int

Fill opacity in thousandths of a percent (0..100000).

strokeColor ColorRgb?

The outline color, or null when unstroked.

strokeAlpha int

Stroke opacity in thousandths of a percent (0..100000).

strokeWidth Twips

The outline width in twips.

gradient GradientFill

The gradient interior paint, or null.

pattern PatternFill

The tiled pattern interior paint, or null.

strokeDashPattern IReadOnlyList<Twips>

The dash pattern in twips, or null for solid.

fillRule VectorFillRule

How the interior is determined.

lineCap VectorLineCap

How stroked subpath ends are drawn.

lineJoin VectorLineJoin

How stroked segments meet.

behindText bool

True when the path paints behind text.