Defines an annotation push button object.
Object Model
Syntax
Example
This example creates a new button object located at (100, 200) and with dimensions 400 X 600 pixels.
Visual Basic | Copy 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
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also