This class provides support for creating and managing text rollup annotation objects.
[SerializableAttribute()]
public class AnnTextRollupObject : Leadtools.Annotations.AnnNoteObject, Leadtools.Annotations.IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
<SerializableAttribute()>
Public Class AnnTextRollupObject
Inherits Leadtools.Annotations.AnnNoteObject
Implements Leadtools.Annotations.IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
[SerializableAttribute()]
public ref class AnnTextRollupObject : public Leadtools.Annotations.AnnNoteObject, Leadtools.Annotations.IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
The text rollup annotation object extends AnnNoteObject by adding an Expanded property. When this property is set to false, the text rollup object looks and behaves like a normal note. When Expanded 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 Annotation Object. (Deprecated) For more information about the text rollup annotation object refer to AnnTextRollupObject (Deprecated). For more information about the automated text rollup annotation object, refer to Annotation Objects - Automated Features (Deprecated).
This example creates a new text rollup object.
using Leadtools;
using Leadtools.Annotations;
using Leadtools.Codecs;
using Leadtools.WinForms;
private void AnnTextRollupObject_AnnTextRollupObject(RasterImageViewer viewer, AnnContainer container)
{
AnnTextRollupObject textRollup = new AnnTextRollupObject();
textRollup.Text = "My TextRollup object";
textRollup.Font = new AnnFont("Arial", new AnnLength(10, AnnUnit.Point), FontStyle.Regular);
textRollup.EdgeMargin = AnnLength.Empty;
textRollup.ShadowBorderWidth = new AnnLength(6, AnnUnit.Pixel);
textRollup.Alignment = StringAlignment.Center;
textRollup.LineAlignment = StringAlignment.Center;
textRollup.Bounds = new AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel);
container.Objects.Add(textRollup);
textRollup.Expanded = false;
viewer.Invalidate(textRollup.InvalidRectangle);
MessageBox.Show("Not expanded");
textRollup.Expanded = true;
viewer.Invalidate(textRollup.InvalidRectangle);
MessageBox.Show("expanded");
}
Imports Leadtools
Imports Leadtools.Annotations
Imports Leadtools.Codecs
Imports Leadtools.WinForms
Private Sub AnnTextRollupObject_AnnTextRollupObject(ByVal viewer As RasterImageViewer, ByVal container As AnnContainer)
Dim textRollup As AnnTextRollupObject = New AnnTextRollupObject()
textRollup.Text = "My TextRollup object"
textRollup.Font = New AnnFont("Arial", New AnnLength(10, AnnUnit.Point), FontStyle.Regular)
textRollup.EdgeMargin = AnnLength.Empty
textRollup.ShadowBorderWidth = New AnnLength(6, AnnUnit.Pixel)
textRollup.Alignment = StringAlignment.Center
textRollup.LineAlignment = StringAlignment.Center
textRollup.Bounds = New AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel)
container.Objects.Add(textRollup)
textRollup.Expanded = False
viewer.Invalidate(textRollup.InvalidRectangle)
MessageBox.Show("Not expanded")
textRollup.Expanded = True
viewer.Invalidate(textRollup.InvalidRectangle)
MessageBox.Show("expanded")
End Sub
![]() |
Products |
Support |
Feedback: AnnTextRollupObject Class - Leadtools.Annotations |
Introduction |
Help Version 19.0.2017.6.20
|
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.