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
SelectedPen Property
See Also 
Leadtools.Document Namespace > RasterDocumentDrawZoneOptions Structure : SelectedPen Property



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

Syntax

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

Return Value

The Pen object used with drawing the selected zone.

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 a Pen object for all zones, call ZonePen property.
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.