AnnNoteObject Class (original) (raw)
Summary
Defines an annotation note object.
Syntax
C#
Objective-C
C++/CLI
Java
Python
@interface LTAnnNoteObject : LTAnnTextObject<NSCoding, NSCopying>
public class AnnNoteObject extends AnnTextObject
class AnnNoteObject(AnnTextObject):
Example
This example creates a note object and adds it to the automation container.
using Leadtools.Annotations.Automation;
using Leadtools.Annotations.Engine;
using Leadtools.Codecs;
using Leadtools.Annotations;
using Leadtools.Annotations.WinForms;
public void AnnCore_AnnNoteObject()
{
// assumes _automation is valid
double inch = 720.0;
// Add a note object
AnnNoteObject noteObj = new AnnNoteObject();
// Set the points for the note
noteObj.Points.Add(LeadPointD.Create(1 * inch, 1 * inch));
noteObj.Points.Add(LeadPointD.Create(3 * inch, 1 * inch));
noteObj.Points.Add(LeadPointD.Create(3 * inch, 3 * inch));
noteObj.Points.Add(LeadPointD.Create(1 * inch, 3 * inch));
// Set the text
noteObj.Text = "this is text for a note object";
// Add the object to the automation container
_automation.Container.Children.Add(noteObj);
}