←Select platform

AnnNoteObject Class

Summary

The note annotation object.

Remarks

The note annotation object is a rectangle with a shadow border and brush background (yellow by default). It contains a text string with font properties. The text will wrap on word breaks within the object's specified rectangle. For more information about the note annotation object refer to WPF AnnNoteObject. For more information about the automated note annotation object, refer to WPF Annotation Objects - Automated Features.

Example

This example creates a new note object and then adds it to a container.

C#
VB
Silverlight C#
Silverlight VB
using Leadtools.Windows.Controls; 
using Leadtools.Windows.Annotations; 
using Leadtools.Demos; 
using Leadtools.Help; 
 
private void AnnNoteObject_AnnNoteObject(AnnContainer container, string textString) 
{ 
   AnnNoteObject note = new AnnNoteObject(); 
   note.Text = textString; 
   note.FontSize = 10.0; 
 
   note.TextEdgeMargin = 0.0; 
   note.ShadowBorderWidth = 6.0; 
   note.TextHorizontalAlignment = AnnTextAlignment.Center; 
   note.TextVerticalAlignment = AnnTextAlignment.Center; 
   note.FontFamilyName = "Arial"; 
   note.FontStyle = AnnFontStyle.Normal; 
   note.Rect = new Rect(100, 200, 400, 600); 
 
   container.Children.Add(note); 
} 
Imports Leadtools.Windows.Controls 
Imports Leadtools.Windows.Annotations 
 
Private Sub AnnNoteObject_AnnNoteObject(ByVal container As AnnContainer, ByVal textString As String) 
   Dim note As AnnNoteObject = New AnnNoteObject() 
   note.Text = textString 
   note.FontFamilyName = "Arial" 
   note.FontSize = 10.0 
   note.FontStyle = AnnFontStyle.Normal 
 
   note.TextEdgeMargin = 0.0 
   note.ShadowBorderWidth = 6.0 
   note.TextHorizontalAlignment = AnnTextAlignment.Center 
   note.TextVerticalAlignment = AnnTextAlignment.Center 
   note.Rect = New Rect(100, 200, 400, 600) 
 
   container.Children.Add(note) 
End Sub 
using Leadtools.Windows.Controls; 
using Leadtools.Windows.Annotations; 
using Leadtools.Examples; 
//using Leadtools.Help; 
 
private void AnnNoteObject_AnnNoteObject(AnnContainer container, string textString) 
{ 
   AnnNoteObject note = new AnnNoteObject(); 
   note.Text = textString; 
   note.FontSize = 10.0; 
 
   note.ShadowBorderWidth = 6.0; 
   note.TextHorizontalAlignment = AnnTextAlignment.Center; 
   note.FontFamilyName = "Arial"; 
   note.FontStyle = AnnFontStyle.Normal; 
   note.Rect = new Rect(100, 200, 400, 600); 
 
   container.Children.Add(note); 
} 
Imports Leadtools.Windows.Controls 
Imports Leadtools.Windows.Annotations 
 
Private Sub AnnNoteObject_AnnNoteObject(ByVal container As AnnContainer, ByVal textString As String) 
   Dim note As AnnNoteObject = New AnnNoteObject() 
   note.Text = textString 
   note.FontSize = 10.0 
 
   note.ShadowBorderWidth = 6.0 
   note.TextHorizontalAlignment = AnnTextAlignment.Center 
   note.FontFamilyName = "Arial" 
   note.FontStyle = AnnFontStyle.Normal 
   note.Rect = New Rect(100, 200, 400, 600) 
 
   container.Children.Add(note) 
End Sub 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.Annotations Assembly