LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
AnnDrawable Constructor(Boolean,Boolean,Boolean)
See Also 
Leadtools.Annotations Namespace > AnnDrawable Class > AnnDrawable Constructor : AnnDrawable Constructor(Boolean,Boolean,Boolean)



supportsPen
true if this object will support a pen; otherwise false.
supportsBrush
true if this object will support a brush; otherwise false.
supportsFont
true if this object will support a font; otherwise false.

The AnnDrawable Constructor(Boolean,Boolean,Boolean) is available in LEADTOOLS Document and Medical Imaging toolkits.

Initializes a new instance of the AnnDrawable class.

Syntax

Visual Basic (Declaration) 
Protected Function New( _
   ByVal supportsPen As Boolean, _
   ByVal supportsBrush As Boolean, _
   ByVal supportsFont As Boolean _
)
Visual Basic (Usage)Copy Code
Dim supportsPen As Boolean
Dim supportsBrush As Boolean
Dim supportsFont As Boolean
 
Dim instance As New AnnDrawable(supportsPen, supportsBrush, supportsFont)
C# 
protected AnnDrawable( 
   bool supportsPen,
   bool supportsBrush,
   bool supportsFont
)
C++/CLI 
protected:
AnnDrawable( 
   bool supportsPen,
   bool supportsBrush,
   bool supportsFont
)

Parameters

supportsPen
true if this object will support a pen; otherwise false.
supportsBrush
true if this object will support a brush; otherwise false.
supportsFont
true if this object will support a font; otherwise false.

Remarks

Derived classes use this constructor to specify whether they support the various drawing objects. For example, a line object would pass false for supportsBrush and supportsFont since they are not needed.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features