Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AnnNoteObject Class
See Also  Members   Example 
Leadtools.Windows.Annotations Namespace : AnnNoteObject Class





The note annotation object.

Object Model



Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class AnnNoteObject 
   Inherits AnnTextObject
   Implements IAnnTextObject 
Visual Basic (Usage)Copy Code
Dim instance As AnnNoteObject
C# 
[SerializableAttribute()]
public class AnnNoteObject : AnnTextObject, IAnnTextObject  
C++/CLI 
[SerializableAttribute()]
public ref class AnnNoteObject : public AnnTextObject, IAnnTextObject  
XAML Object Element Usage 

<AnnNoteObject .../>

XAML Object Element Usage 

<AnnNoteObject .../>

Example

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

Visual BasicCopy Code
Private Sub AnnNoteObject_AnnNoteObject(ByVal container As AnnContainer, ByVal textString As String)
  Dim note As AnnNoteObject = New AnnNoteObject()
  note.Text = textString
  note.FontFamily = New FontFamily("Arial")
  note.FontSize = 10.0
    note.FontStyle = System.Windows.FontStyles.Normal
  note.TextEdgeMargin = 0.0
  note.ShadowBorderWidth = 6.0
    note.TextHorizontalAlignment = AnnTextAlignment.Center
    note.TextVerticalAlignment = AnnTextAlignment.Center
  note.Left = 100
  note.Top = 200
  note.Width = 400
  note.Height = 600

  container.Children.Add(note)
End Sub
C#Copy Code
private void AnnNoteObject_AnnNoteObject(AnnContainer container, string textString) 

   AnnNoteObject note = new AnnNoteObject(); 
   note.Text = textString; 
   note.FontFamily = new FontFamily("Arial"); 
   note.FontSize = 10.0; 
   note.FontStyle = FontStyles.Normal; 
   note.TextEdgeMargin = 0.0; 
   note.ShadowBorderWidth = 6.0; 
   note.TextHorizontalAlignment = AnnTextAlignment.Center; 
   note.TextVerticalAlignment = AnnTextAlignment.Center; 
   note.Left = 100; 
   note.Top = 200; 
   note.Width = 400; 
   note.Height = 600; 
 
   container.Children.Add(note); 
}
XAMLCopy Code
<Window x:Class="WPFSamples.AnnNoteObject" Title="Leadtools.Windows.Annotations" Height="600" Width="800" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Leadtools_Windows_Annotations="clr-namespace:Leadtools.Windows.Annotations;assembly=Leadtools.Windows.Annotations"> 
  <Leadtools_Windows_Annotations:AnnNoteObject Left="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>

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.

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  Leadtools.Windows.Annotations.AnnObjectBase
                     Leadtools.Windows.Annotations.AnnRectangleObject
                        Leadtools.Windows.Annotations.AnnTextObject
                           Leadtools.Windows.Annotations.AnnNoteObject
                              Leadtools.Windows.Annotations.AnnTextRollupObject

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

AnnNoteObject requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.