Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
ObjectTemplate Property
See Also 
Leadtools.Annotations Namespace > AnnDrawDesigner Class : ObjectTemplate Property



Gets or sets the annotation template object.

Syntax

Visual Basic (Declaration) 
Public Overridable Property ObjectTemplate As AnnObject
Visual Basic (Usage)Copy Code
Dim instance As AnnDrawDesigner
Dim value As AnnObject
 
instance.ObjectTemplate = value
 
value = instance.ObjectTemplate
C# 
public virtual AnnObject ObjectTemplate {get; set;}
C++/CLI 
public:
virtual property AnnObject^ ObjectTemplate {
   AnnObject^ get();
   void set (AnnObject^ value);
}

Return Value

An AnnObject that acts as the template for new annotation objects drawn by this AnnDrawDesigner.

Example

For an example, refer to AnnDesigner.

Remarks

The AnnDrawDesigner will call the AnnObject.Clone method of this ObjectTemplate when it is ready to add a new object to the container. You should set this value with drawing attributes (pen, brush, font, etc) desired for new objects to be drawn with this AnnDrawDesigner.

Requirements

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

See Also

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