Defines an annotation push button object.
public class AnnButtonObject : Leadtools.Windows.Annotations.AnnTextObject, Leadtools.Windows.Annotations.IAnnFont, Leadtools.Windows.Annotations.IAnnHeader, Leadtools.Windows.Annotations.IAnnObject, Leadtools.Windows.Annotations.IAnnRectangle, Leadtools.Windows.Annotations.IAnnText
Public Class AnnButtonObject
Inherits Leadtools.Windows.Annotations.AnnTextObject
Implements Leadtools.Windows.Annotations.IAnnFont, Leadtools.Windows.Annotations.IAnnHeader, Leadtools.Windows.Annotations.IAnnObject, Leadtools.Windows.Annotations.IAnnRectangle, Leadtools.Windows.Annotations.IAnnText
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.
This example creates a new button object located at (100, 200) and with dimensions 400 X 600 pixels.
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
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);
}
<Window x:Class="WPFSamples.AnnButtonObject"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Leadtools.Windows.Annotations" Height="600" Width="800"
xmlns:Leadtools_Windows_Annotations="clr-namespace:Leadtools.Windows.Annotations;assembly=Leadtools.Windows.Annotations"
>
<Leadtools_Windows_Annotations:AnnButtonObject
Left="100"
Top="100"
Width="200"
Height="100"
Header="Button Object"
Text="Button Text"
IsPushed="False"/>
</Window>
Products |
Support |
Feedback: AnnButtonObject Class - Leadtools.Windows.Annotations |
Introduction |
Help Version 19.0.2017.3.22
|
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.