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





Gets or sets the annotation template object. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property ObjectTemplate As AnnObjectBase
Visual Basic (Usage)Copy Code
Dim instance As AnnDrawDesigner
Dim value As AnnObjectBase
 
instance.ObjectTemplate = value
 
value = instance.ObjectTemplate
C# 
public AnnObjectBase ObjectTemplate {get; set;}
C++/CLI 
public:
property AnnObjectBase^ ObjectTemplate {
   AnnObjectBase^ get();
   void set (AnnObjectBase^ value);
}
XAML Syntax 
For XAML information, see the Leadtools.Windows.Annotations.AnnObjectBase type.

Dependencies Property Information 

Identifier field

ObjectTemplateProperty

Metadata properties set to true

None

XAML Syntax 
For XAML information, see the Leadtools.Windows.Annotations.AnnObjectBase type.

Dependencies Property Information 

Identifier field

ObjectTemplateProperty

Metadata properties set to true

None

Return Value

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

Example

For C#/VB examples, refer to AnnDesigner.

Remarks

The AnnDrawDesigner will call the AnnObjectBase.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 (stroke, fill, text, etc) desired for new objects to be drawn with this AnnDrawDesigner.

Requirements

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

See Also

ObjectTemplate requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.