Leadtools.Annotations Namespace : AnnButtonObject Class |
[SerializableAttribute()] public class AnnButtonObject : AnnTextObject, IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
'Declaration <SerializableAttribute()> Public Class AnnButtonObject Inherits AnnTextObject Implements IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
'Usage Dim instance As AnnButtonObject
public sealed class AnnButtonObject : IAnnTextObject, System.ICloneable, IClosable //In WinRT the IDisposable interface is replaced by IClosable, ~Remove~
function Leadtools.Annotations.AnnButtonObject()
[SerializableAttribute()] public ref class AnnButtonObject : public AnnTextObject, IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
The AnnButtonObject class inherits the the AnnTextObject class, which implements the IAnnTextObject interface. For more information, refer to Using Text in Annotation Objects.
For more information about the button annotation object refer to AnnButtonObject. For more information about the automated annotation button object, refer to Annotation Objects - Automated Features.
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
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); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2