Constructor VectorPath
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
segmentsIReadOnlyList<VectorPathSegment>The path segments in order.
fillColorColorRgb?The interior color, or null when unfilled.
fillAlphaintFill opacity in thousandths of a percent (0..100000).
strokeColorColorRgb?The outline color, or null when unstroked.
strokeAlphaintStroke opacity in thousandths of a percent (0..100000).
strokeWidthTwipsThe outline width in twips.
strokeDashPatternIReadOnlyList<Twips>The dash pattern in twips, or null for solid.
fillRuleVectorFillRuleHow the interior is determined.
lineCapVectorLineCapHow stroked subpath ends are drawn.
lineJoinVectorLineJoinHow stroked segments meet.
behindTextboolTrue 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
segmentsIReadOnlyList<VectorPathSegment>The path segments in order.
fillColorColorRgb?The flat interior color, or null when unfilled. When
gradientorpatternis supplied this is the color a renderer that cannot paint that interior falls back to.fillAlphaintFill opacity in thousandths of a percent (0..100000).
strokeColorColorRgb?The outline color, or null when unstroked.
strokeAlphaintStroke opacity in thousandths of a percent (0..100000).
strokeWidthTwipsThe outline width in twips.
gradientGradientFillThe gradient interior paint, or null.
patternPatternFillThe tiled pattern interior paint, or null.
strokeDashPatternIReadOnlyList<Twips>The dash pattern in twips, or null for solid.
fillRuleVectorFillRuleHow the interior is determined.
lineCapVectorLineCapHow stroked subpath ends are drawn.
lineJoinVectorLineJoinHow stroked segments meet.
behindTextboolTrue when the path paints behind text.