public abstract class AnnObject : IAnnObjectCloneable
Public MustInherit Class AnnObject
Implements IAnnObjectCloneable
@interface LTAnnObject : NSObject<NSCoding,NSCopying>
public abstract class AnnObject implements IAnnObjectCloneable
public:
ref class AnnObject abstract : IAnnObjectCloneable
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 |
---|---|
Each AnnObject contains an array of Leadtools.LeadPointD points in container coordinates that define its location and size. How these points are interpreted to form the object shape is up to the derived class. For instance, a line object normally has two points: a starting point and an ending point. A rectangle object has four points, one for each corner (to keep track of rotated objects) and so forth. |
|
Object rotation center and gripper. |
|
The objects to use when drawing the boundary, filling the interior of an annotation object and drawing any text strings. A line object uses only the stroke object whereas a rectangle object uses both stroke and fill objects. A text object use all three to render its string. |
|
Scale, ScaleVector, Translate and Rotate |
Helper method that transforms the object instead of directly manipulating the raw points. |
IsVisible and IsSelected |
Hides/shows and selects/unselects an object in the container. |
Extra properties that are not used directly by the object, but can be used to store a hyperlink or any user-defined data. |
|
Password, Lock, Unlock, IsLocked and LockPicture |
Properties and methods 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. |
Opacity value to use when rendering the object. |
|
Text labels that can be used to draw text legends next to an object, such as a name. |
|
Reviews | Review items that can be used to add review comments and replies to this AnnObject. |
Helper method to determine whether a point intersects with this object. |
|
Serialize and Deserialize |
Saves and loads objects from an XML element. Used to load and save an object to an annotation file, as well as to perform undo/redo operations. |
AnnObjects are added to a container using the AnnContainer.Children property. Objects can optionally be added to layers inside the container. For more information, refer to AnnLayer.
For an example, refer to AnnContainer.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document