LEADTOOLS WinRT (Leadtools.Annotations.Core)
LEAD Technologies, Inc

AnnObject Class


Members 
Defines the base class for all annotation objects. WinRT support
Object Model
AnnObject ClassAnnBrush ClassAnnFont ClassLeadPointCollection ClassAnnStroke Class
Syntax
public sealed class AnnObject : IAnnObjectCloneable  
function Leadtools.Annotations.Core.AnnObject()
Remarks

The AnnObject class provides all the basic functionality common to all LEADTOOLS annotation objects. AnnObject is an abstract class, you cannot instantiate objects of this class directly. Instead, you create an instance of a derived class such as AnnPolylineObject or AnnRectangleObject and use the methods and properties of the base AnnObject through the derived class.

AnnObject contains the following members:

Member Description

Points

Each AnnObject contains an array of Leadtools.LeadPointD in container coordinates that define its location and size. How these points are interpreted in forming the object shape is up to the derived class. For instance a line object would normally have two points: start and end. A rectangle object will have four points for the each corner (to keep track of rotated objects) and so forth.

RotateCenter and RotateGripper

Object rotation center and gripper.

Stroke, Fill and Font

The objects to use when drawing the boundary, filling the interior of an annotation object and drawing any text strings. A line object would use only the stroke while, a rectangle object would use both while a text object would use both and the font for rendering its string.

Scale, Translate and Rotate

Helper method to transform the object instead of manipulating the raw points directly.

IsVisible and IsSelected

Hide/show and select/unselect an object in the container.

Hyperlink and Tag

Extra properties that are not used directly by the object but can be used to store a hyperlink and any user-defined data.

Password, Lock, Unlock, IsLocked and LockPicture

Properties and methods to use for locking an object with a password. A locked object cannot be moved nor deleted by the automation framework and can be rendered with a special lock picture next to it.

Labels

Text labels that can be used to draw text legends next to the object, such as a name.

HitTest

Helper method to check if a point intersects with this object.

Serialize and Deserialize

Save and load the objects from an XML element. Used to load and save the object to an annotation file as well as undo/redo operations.

As well as the members described above, AnnObject contains other properties and methods that of interest only when creating new object types. For more information, refer to Implementing User-Defined Objects With LEADTOOLS Annotations.

Example

For an example, refer to AnnContainer.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnObject Members
Leadtools.Annotations.Core Namespace
Working with Automated Annotations in WinRT (Windows Store)

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.