The note annotation object.
Object Model
Syntax
Example
This example creates a new note object and then adds it to a container.
Visual Basic | Copy Code |
---|
Private Sub AnnNoteObject_AnnNoteObject(ByVal container As AnnContainer, ByVal textString As String)
Dim note As AnnNoteObject = New AnnNoteObject()
note.Text = textString
note.Font = New AnnFont("Arial", New AnnLength(10, AnnUnit.Point), FontStyle.Regular)
note.EdgeMargin = AnnLength.Empty
note.ShadowBorderWidth = New AnnLength(6, AnnUnit.Pixel)
note.Alignment = StringAlignment.Center
note.LineAlignment = StringAlignment.Center
note.Bounds = New AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel)
container.Objects.Add(note)
End Sub |
C# | Copy Code |
---|
private void AnnNoteObject_AnnNoteObject(AnnContainer container, string textString) { AnnNoteObject note = new AnnNoteObject(); note.Text = textString; note.Font = new AnnFont("Arial", new AnnLength(10, AnnUnit.Point), FontStyle.Regular); note.EdgeMargin = AnnLength.Empty; note.ShadowBorderWidth = new AnnLength(6, AnnUnit.Pixel); note.Alignment = StringAlignment.Center; note.LineAlignment = StringAlignment.Center; note.Bounds = new AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel); container.Objects.Add(note); } |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also