ImageGear .NET v24.12 - Updated
ImGearARTButton Class
Members  Example 




ImageGear24.Art Assembly > ImageGear.ART Namespace : ImGearARTButton Class
Represents ART Button mark.
Object Model
ImGearARTButton ClassImGearRectangle StructureIImGearRGBQuad InterfaceImGearRectangle StructureIImGearRGBQuad Interface
Syntax
'Declaration
 
Public Class ImGearARTButton 
   Inherits ImGearARTMark
'Usage
 
Dim instance As ImGearARTButton
public class ImGearARTButton : ImGearARTMark 
public __gc class ImGearARTButton : public ImGearARTMark 
public ref class ImGearARTButton : public ImGearARTMark 
Example
// 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);
' 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

Reference

ImGearARTButton Members
ImageGear.ART Namespace