LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
AnnButtonObject Class
See Also  Members  
Leadtools.Annotations Namespace : AnnButtonObject Class



The AnnButtonObject Class is available in LEADTOOLS Document and Medical Imaging toolkits.

Defines an annotation push button object.

Object Model

AnnButtonObject ClassAnnRectangle StructureAnnRectangle StructureAnnBrush ClassAnnContainer ClassAnnLength StructureAnnFont ClassAnnGroupObject ClassAnnFont ClassAnnPoint StructureAnnPoint StructureAnnPen ClassAnnPoint StructureAnnPoint StructureAnnUnitConverter Class

Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class AnnButtonObject 
   Inherits AnnTextObject
   Implements IAnnTextObjectICloneableIDisposableISerializable 
Visual Basic (Usage)Copy Code
Dim instance As AnnButtonObject
C++/CLI 
[SerializableAttribute()]
public ref class AnnButtonObject : public AnnTextObject, IAnnTextObjectICloneableIDisposableISerializable  

Example

This example creates a new button object located at (100, 200) and with dimensions 400 X 600 pixels.

Visual BasicCopy Code
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
C#Copy Code
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);
}

Remarks

The push button annotation object is an image of a standard Windows button that can be activated.

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.

Inheritance Hierarchy

System.Object
   Leadtools.Annotations.AnnDrawable
      Leadtools.Annotations.AnnObject
         Leadtools.Annotations.AnnRectangleObject
            Leadtools.Annotations.AnnTextObject
               Leadtools.Annotations.AnnButtonObject

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features