Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
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;}
Managed Extensions for C++ 
public: __property virtual AnnObject* get_ObjectTemplate();
public: __property virtual void set_ObjectTemplate( 
   AnnObject* value
);
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 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 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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