Visual Basic (Declaration) | |
---|---|
<SerializableAttribute()> Public Class AnnNoteObject Inherits AnnTextObject Implements IAnnTextObject |
Visual Basic (Usage) | Copy Code |
---|---|
|
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 .../> |
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) |
C# | Copy Code |
---|---|
private void AnnNoteObject_AnnNoteObject(AnnContainer container, string textString) |
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"> |
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.
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
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family