ImageGear for .NET
ImGearARTButton Class
Members  Example  See Also  Send Feedback
ImageGear21.Art Assembly > ImageGear.ART Namespace : ImGearARTButton Class




Glossary Item Box

Represents ART Button mark.

Object Model

ImGearARTButton ClassImGearRectangle StructureIImGearRGBQuad InterfaceImGearRectangle StructureIImGearRGBQuad Interface

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Example

C#Copy Code
// Setup rectangle for the text mark's location.
ImGearRectangle igRectangle = new ImGearRectangle(10, 10, 100, 40);
// Setup color for the text.
ImGearRGBQuad igRGBQuadText = new ImGearRGBQuad(40, 40, 200);
// Setup color for the fill.
ImGearRGBQuad igRGBQuadFill = new ImGearRGBQuad(200, 200, 200);
// Create the button annotation.
ImGearARTButton igARTButton = new ImGearARTButton(
    igRectangle, "ImGearARTButton annotation", igRGBQuadText,
    igRGBQuadFill, 255, "Arial", (float)14.0, ImGearARTFontStyles.Regular
);
// Add the annotation to the ARTPage.
igARTPage.AddMark(igARTButton, ImGearARTCoordinatesType.IMAGE_COORD);
Visual BasicCopy Code
' Setup rectangle for the text mark's location.
Dim igRectangle As New ImGearRectangle(10, 10, 100, 40)
' Setup color for the text.
Dim igRGBQuadText As New ImGearRGBQuad(40, 40, 200)
' Setup color for the fill.
Dim igRGBQuadFill As New ImGearRGBQuad(200, 200, 200)
' Create the button annotation.
Dim igARTButton As New ImGearARTButton( _
 igRectangle, "ImGearARTButton annotation", igRGBQuadText, _
 igRGBQuadFill, 255, "Arial", CSng(14), ImGearARTFontStyles.Regular)
' Add the annotation to the ARTPage.
igARTPage.AddMark(igARTButton, ImGearARTCoordinatesType.IMAGE_COORD)

Inheritance Hierarchy

System.Object
   ImageGear.ART.ImGearARTSelection
      ImageGear.ART.ImGearARTMark
         ImageGear.ART.ImGearARTButton

See Also

©2013. Accusoft Corporation. All Rights Reserved.