Returns or sets the color and width of the pen for drawing the annotation rectangle/ellipse/line. This property is only valid when the annotation type is NOT 2(Text).

Namespace: Dynamsoft.DotNet.TWAIN
Assembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
public Pen AnnotationPen { get; set; }
Visual Basic
Public Property AnnotationPen As Pen
	Get
	Set
Visual C++
public:
property Pen^ AnnotationPen {
	Pen^ get ();
	void set (Pen^ value);
}

Remarks

By default, the color is black and the width is 1;

Exceptions

ExceptionCondition
Dynamsoft.DotNet.TWAIN..::..TwainException When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString.

See Also