The AnnNoteObject Class supports WPF/Silverlight.
The AnnNoteObject Class is available in LEADTOOLS Document and Medical Imaging toolkits.
The note annotation object.
Supported in Silverlight, Windows Phone 7
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.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 |
C# | Copy Code |
---|
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);
} |
SilverlightCSharp | Copy Code |
---|
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);
} |
SilverlightVB | Copy Code |
---|
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 |
XAML | Copy 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
Inheritance Hierarchy
Requirements
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)
See Also