A pattern for a pen (e.g. solid, dotted, dashed, etc.).
Namespace: TallComponents.PDF.Layout.PensAssembly: TallComponents.PDF.Layout (in TallComponents.PDF.Layout.dll) Version: 3.0.63.0
Syntax
| C# |
|---|
[SerializableAttribute] public class DashPattern : Object, ICloneable |
| Visual Basic |
|---|
<SerializableAttribute> _ Public Class DashPattern _ Inherits Object _ Implements ICloneable |
Remarks
A DashPattern is an array of numbers that specify alternating lengths of ink
followed by no-ink. The array is applied repeatedly to draw the full length of
the path to which the pattern is applied.
Examples
This sample demonstrates how to declare a DashPattern in XML
CopyC#
<document>
<section>
<paragraph type="drawing" width="200" height="200">
<shape type="lineshape" x="0" y="0" x1="200" y1="200">
<pen width="1" color="red">
<pattern phase="2">1, 1, 5, 5, 20</pattern>
</pen>
</shape>
</paragraph>
</section>
</document>
Inheritance Hierarchy
System..::..Object
TallComponents.PDF.Layout..::..Object
TallComponents.PDF.Layout.Pens..::..DashPattern
TallComponents.PDF.Layout..::..Object
TallComponents.PDF.Layout.Pens..::..DashPattern