LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
ObjectTemplate Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnDrawDesigner Class : ObjectTemplate Property



The ObjectTemplate Property supports WPF/Silverlight.

The ObjectTemplate Property is available in LEADTOOLS Document and Medical Imaging toolkits.

Gets or sets the annotation template object. This is a dependency property.Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public 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 AnnObject ObjectTemplate {get; set;}
C++/CLI 
public:
property AnnObject^ ObjectTemplate {
   AnnObject^ get();
   void set (    AnnObject^ value);
}

Property Value

An AnnObject 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 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 (stroke, fill, text, etc) desired for new objects to be drawn with this AnnDrawDesigner.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

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.