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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also