Visual Basic (Declaration) | |
---|---|
<SerializableAttribute()> Public Class AnnTextRollupObject Inherits AnnNoteObject Implements IAnnTextObject |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
[SerializableAttribute()] public class AnnTextRollupObject : AnnNoteObject, IAnnTextObject |
C++/CLI | |
---|---|
[SerializableAttribute()] public ref class AnnTextRollupObject : public AnnNoteObject, IAnnTextObject |
XAML Object Element Usage | |
---|---|
<AnnTextRollupObject .../> |
XAML Object Element Usage | |
---|---|
<AnnTextRollupObject .../> |
This example creates a new text rollup object.
Visual Basic | Copy Code |
---|---|
Private Sub AnnTextRollupObject_AnnTextRollupObject(ByVal viewer As BitmapSourceViewer, ByVal container As AnnContainer) |
C# | Copy Code |
---|---|
private void AnnTextRollupObject_AnnTextRollupObject(BitmapSourceViewer viewer, AnnContainer container) |
XAML | Copy Code |
---|---|
<Window x:Class="WPFSamples.AnnTextRollupObject" 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 text rollup annotation object extends AnnNoteObject by adding an IsExpanded property. When this property is set to false, the text rollup object looks and behaves like a normal note. When IsExpanded is set to false, the text rollup object will shrink to show only one line of text. This saves space on the container surface. For more information, refer to Using Text in WPF Annotation Objects. For more information about the text rollup annotation object refer to WPF AnnTextRollupObject. For more information about the automated text rollup 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