AnnotationPen Constructor (AnnotationBrush, Single) |
Creates a new instance of AnnotationPen specifying the
AnnotationBrush and
pen width.
Namespace:
Atalasoft.Annotate
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 2026.2.0.0.42 (.NET 4.6.2, x86)
Syntaxpublic AnnotationPen(
AnnotationBrush brush,
float width
)
Public Sub New (
brush As AnnotationBrush,
width As Single
)
Parameters
- brush
- Type: Atalasoft.AnnotateAnnotationBrush
An AnnotationBrush used for the pen object. - width
- Type: SystemSingle
The width of the pen. This value must be greater than zero.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | Thrown if the brush parameter is null. |
| ArgumentOutOfRangeException | Thrown if the width parameter is not greater than zero. |
See Also