Leadtools.Document Deprecated as of v16. Refer to: Leadtools.Forms.Ocr | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Pen Property
See Also 
Leadtools.Document Namespace > RasterDocumentDrawZoneOptions Structure : Pen Property



Gets or sets the Pen object to be used when drawing the zones.

Syntax

Visual Basic (Declaration) 
Public Property Pen As Pen
Visual Basic (Usage)Copy Code
Dim instance As RasterDocumentDrawZoneOptions
Dim value As Pen
 
instance.Pen = value
 
value = instance.Pen
C# 
public Pen Pen {get; set;}
C++/CLI 
public:
property Pen Pen {
   Pen get();
   void set (Pen value);
}

Return Value

The Pen object used with drawing the zones.

Remarks

To draw zones with the page, call RasterDocumentEngine.DrawPage(Graphics,Int32,Rectangle,Rectangle,Rectangle,Rectangle,RasterPaintProperties). Call this property before calling RasterDocumentEngine.DrawPage(Graphics,Int32,Rectangle,Rectangle,Rectangle,Rectangle,RasterPaintProperties) if you need to use new Pen object for drawing zones. To specify the Pen object for the selected zone, call SelectedPen.
To draw a specific selected zone call RasterDocumentEngine.SelectZone(Graphics,Int32,Int32,Boolean) or RasterDocumentEngine.SelectZoneByPoint(Graphics,Int32,Point).
For more information, refer to Drawing Pages and Zones.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

The Leadtools.Document namespace is deprecated and no longer supported as of LEADTOOLS v16. For v16 and later, please refer to: Leadtools.Forms.Ocr. This documentation is retained for v15 and earlier informational use only.