Defines an annotation push button object.
[SerializableAttribute()]
public class AnnButtonObject : Leadtools.Annotations.AnnTextObject, Leadtools.Annotations.IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
<SerializableAttribute()>
Public Class AnnButtonObject
Inherits Leadtools.Annotations.AnnTextObject
Implements Leadtools.Annotations.IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
[SerializableAttribute()]
public ref class AnnButtonObject : public Leadtools.Annotations.AnnTextObject, Leadtools.Annotations.IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
The push button annotation object is an image of a standard Windows button that can be activated. The AnnButtonObject class inherits the AnnTextObject class, which implements the IAnnTextObject interface. For more information, refer to Using Text in Annotation Objects. (Deprecated)
For more information about the button annotation object refer to AnnButtonObject (Deprecated). For more information about the automated annotation button object, refer to Annotation Objects - Automated Features (Deprecated).
This example creates a new button object located at (100, 200) and with dimensions 400 X 600 pixels.
using Leadtools;
using Leadtools.Annotations;
using Leadtools.Codecs;
using Leadtools.WinForms;
private void AnnButtonObject_AnnButtonObject(AnnContainer container, string textString)
{
AnnButtonObject button = new AnnButtonObject();
button.Text = textString;
button.Font = new AnnFont("Arial", new AnnLength(10, AnnUnit.Point), FontStyle.Regular);
button.Bounds = new AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel);
button.Pushed = false;
container.Objects.Add(button);
}
Imports Leadtools
Imports Leadtools.Annotations
Imports Leadtools.Codecs
Imports Leadtools.WinForms
Private Sub AnnButtonObject_AnnButtonObject(ByVal container As AnnContainer, ByVal textString As String)
Dim button As AnnButtonObject = New AnnButtonObject()
button.Text = textString
button.Font = New AnnFont("Arial", New AnnLength(10, AnnUnit.Point), FontStyle.Regular)
button.Bounds = New AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel)
button.Pushed = False
container.Objects.Add(button)
End Sub
![]() |
Products |
Support |
Feedback: AnnButtonObject 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.