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