Error processing SSI file
LEADTOOLS Annotations (Leadtools.Annotations assembly)

Show in webframe

AnnButtonObject Class






Members 
Defines an annotation push button object.
Object Model
Syntax
Remarks
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.

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.

Example

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

Copy Code  
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
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);
}
Requirements

Target Platforms

See Also

Reference

AnnButtonObject Members
Leadtools.Annotations Namespace

Error processing SSI file
(Deprecated, use Leadtools.Annotations.Core instead)