The note annotation object.
public class AnnNoteObject : Leadtools.Windows.Annotations.AnnTextObject, Leadtools.Windows.Annotations.IAnnFont, Leadtools.Windows.Annotations.IAnnHeader, Leadtools.Windows.Annotations.IAnnObject, Leadtools.Windows.Annotations.IAnnRectangle, Leadtools.Windows.Annotations.IAnnTextThe 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.
This example creates a new note object and then adds it to a container.
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsPrivate Sub AnnNoteObject_AnnNoteObject(ByVal container As AnnContainer, ByVal textString As String)Dim note As AnnNoteObject = New AnnNoteObject()note.Text = textStringnote.FontFamilyName = "Arial"note.FontSize = 10.0note.FontStyle = AnnFontStyle.Normalnote.TextEdgeMargin = 0.0note.ShadowBorderWidth = 6.0note.TextHorizontalAlignment = AnnTextAlignment.Centernote.TextVerticalAlignment = AnnTextAlignment.Centernote.Rect = New Rect(100, 200, 400, 600)container.Children.Add(note)End Sub
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);}
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Examples;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.ControlsImports Leadtools.Windows.AnnotationsPrivate Sub AnnNoteObject_AnnNoteObject(ByVal container As AnnContainer, ByVal textString As String)Dim note As AnnNoteObject = New AnnNoteObject()note.Text = textStringnote.FontSize = 10.0note.ShadowBorderWidth = 6.0note.TextHorizontalAlignment = AnnTextAlignment.Centernote.FontFamilyName = "Arial"note.FontStyle = AnnFontStyle.Normalnote.Rect = New Rect(100, 200, 400, 600)container.Children.Add(note)End Sub
<Window x:Class="WPFSamples.AnnNoteObject"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"Title="Leadtools.Windows.Annotations" Height="600" Width="800"xmlns:Leadtools_Windows_Annotations="clr-namespace:Leadtools.Windows.Annotations;assembly=Leadtools.Windows.Annotations"><Leadtools_Windows_Annotations:AnnNoteObjectLeft="100"Top="100"Width="200"Height="100"Stroke="Black"StrokeThickness="3.0"Header="Note Object"Text="Note Text"TextHorizontalAlignment="Center"TextVerticalAlignment="Center"ShadowBorderWidth="8.0"/></Window>
|
Products |
Support |
Feedback: AnnNoteObject Class - Leadtools.Windows.Annotations |
Introduction |
Help Version 19.0.2017.3.22
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.