←Select platform

AnnButtonObject Class

Summary

Defines an annotation push button object.

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 IAnnText interface. For more information, refer to Using Text in WPF Annotation Objects.

For more information about the button annotation object refer to AnnButtonObject for WPF. For more information about the automated annotation button object, refer to WPF Annotation Objects - Automated Features.

Example

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

C#
VB
using Leadtools.Windows.Annotations; 
using Leadtools.Windows.Controls; 
using Leadtools.Demos; 
using Leadtools.Help; 
 
private void AnnButtonObject_AnnButtonObject(AnnContainer container, string textString) 
{ 
   AnnButtonObject button = new AnnButtonObject(); 
   button.Text = textString; 
   button.FontFamilyName = "Arial"; 
   button.FontStyle = AnnFontStyle.Normal; 
   button.Rect = new Rect(100, 200, 400, 600); 
   button.FontSize = 10; 
   button.IsPushed = false; 
   container.Children.Add(button); 
} 
Imports Leadtools.Windows.Annotations 
Imports Leadtools.Windows.Controls 
 
Private Sub AnnButtonObject_AnnButtonObject(ByVal container As AnnContainer, ByVal textString As String) 
   Dim button As AnnButtonObject = New AnnButtonObject() 
   button.Text = textString 
   button.FontFamilyName = "Arial" 
   button.FontSize = 10 
   button.FontStyle = AnnFontStyle.Normal 
   button.Rect = New Rect(100, 200, 400, 600) 
   button.IsPushed = False 
   container.Children.Add(button) 
End Sub 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.Annotations Assembly