ImageGear PDF v25.2 - Updated
ImGearARTTextCallout Class
Members  Example 




ImageGear.Art Assembly > ImageGear.ART Namespace : ImGearARTTextCallout Class
Represents legacy ART Callout Text mark.
Object Model
ImGearARTTextCallout ClassImGearRectangle StructureImGearARTCallout ClassImGearSize StructureImGearRectangle StructureImGearRectangle StructureIImGearRGBQuad Interface
Syntax
'Declaration
 
Public Class ImGearARTTextCallout 
   Inherits ImGearARTMark
'Usage
 
Dim instance As ImGearARTTextCallout
public class ImGearARTTextCallout : ImGearARTMark 
public __gc class ImGearARTTextCallout : public ImGearARTMark 
public ref class ImGearARTTextCallout : public ImGearARTMark 
Example
// Setup color for the callout border.
ImGearRGBQuad igRGBQuadBorderCallout = new ImGearRGBQuad(0, 255, 255);
// Setup a border with a width of 3 and a solid pattern.
ImGearARTBorder igARTBorderCallout = new ImGearARTBorder(
    igRGBQuadBorderCallout, 3, ImGearARTPenStyle.SOLID
);
// Create a callout to be used for the annotation.
ImGearARTCallout igARTCallout = new ImGearARTCallout(
    ImGearARTCalloutType.LINE, igPage.DIB.Width / 2,
    igPage.DIB.Height / 2, igARTBorderCallout
);
// Setup rectangle for the text mark's location.
ImGearRectangle igRectangle = new ImGearRectangle(10, 10, 200, 20);
// Setup color for the text.
ImGearRGBQuad igRGBQuadText = new ImGearRGBQuad(255, 0, 255);
// Create the text callout annotation.
ImGearARTTextCallout igARTTextCallout = new ImGearARTTextCallout(
    igRectangle, "ImGearARTText annotation", igRGBQuadText,
    "Arial", (float)14.0, ImGearARTFontStyles.Regular, igARTCallout
);
// Add the annotation to the ARTPage.
igARTPage.AddMark(igARTTextCallout, ImGearARTCoordinatesType.IMAGE_COORD);
' Setup color for the callout border.
Dim igRGBQuadBorderCallout As New ImGearRGBQuad(0, 255, 255)
' Setup a border with a width of 3 and a solid pattern.
Dim igARTBorderCallout As New ImGearARTBorder(igRGBQuadBorderCallout, 3, ImGearARTPenStyle.SOLID)
' Create a callout to be used for the annotation.
Dim igARTCallout As New ImGearARTCallout( _
 ImGearARTCalloutType.LINE, igPage.DIB.Width / 2, _
 igPage.DIB.Height / 2, igARTBorderCallout)
' Setup rectangle for the text mark's location.
Dim igRectangle As New ImGearRectangle(10, 10, 200, 20)
' Setup color for the text.
Dim igRGBQuadText As New ImGearRGBQuad(255, 0, 255)
' Create the text callout annotation.
Dim igARTTextCallout As New ImGearARTTextCallout( _
 igRectangle, "ImGearARTText annotation", igRGBQuadText, _
 "Arial", CSng(14), ImGearARTFontStyles.Regular, igARTCallout)
' Add the annotation to the ARTPage.
igARTPage.AddMark(igARTTextCallout, ImGearARTCoordinatesType.IMAGE_COORD)
Inheritance Hierarchy

System.Object
   ImageGear.ART.ImGearARTSelection
      ImageGear.ART.ImGearARTMark
         ImageGear.ART.ImGearARTTextCallout

See Also

Reference

ImGearARTTextCallout Members
ImageGear.ART Namespace

Is this page helpful?
Yes No
Thanks for your feedback.