LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)
LEAD Technologies, Inc

AnnButtonObject Class

Example 





Members 
Defines an annotation push button object. .NET support
Object Model
AnnButtonObject ClassAnnBrush ClassAnnBrush Class
Syntax
public class AnnButtonObject : AnnTextObject, IAnnFontIAnnHeaderIAnnObjectIAnnRectangleIAnnText  
'Declaration
 
Public Class AnnButtonObject 
   Inherits AnnTextObject
   Implements IAnnFontIAnnHeaderIAnnObjectIAnnRectangleIAnnText 
'Usage
 
Dim instance As AnnButtonObject
public sealed class AnnButtonObject : IAnnFontIAnnHeaderIAnnObjectIAnnRectangleIAnnText  
function Leadtools.Windows.Annotations.AnnButtonObject()
public ref class AnnButtonObject : public AnnTextObject, IAnnFontIAnnHeaderIAnnObjectIAnnRectangleIAnnText  
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 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
Copy CodeCopy Code  
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
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>
Requirements

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

See Also

Reference

AnnButtonObject Members
Leadtools.Windows.Annotations Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.