ImageGear .NET v25.1 - Updated
ImGearARTTextFromFile Class
Members  Example 




ImageGear.Art Assembly > ImageGear.ART Namespace : ImGearARTTextFromFile Class
Represents legacy ART Text From File mark.
Object Model
ImGearARTTextFromFile ClassImGearRectangle StructureImGearSize StructureImGearRectangle StructureIImGearRGBQuad Interface
Syntax
'Declaration
 
Public Class ImGearARTTextFromFile 
   Inherits ImGearARTMark
'Usage
 
Dim instance As ImGearARTTextFromFile
public class ImGearARTTextFromFile : ImGearARTMark 
public __gc class ImGearARTTextFromFile : public ImGearARTMark 
public ref class ImGearARTTextFromFile : public ImGearARTMark 
Example
// 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 annotation with the contents of test.txt.
ImGearARTTextFromFile igARTTextFromFile = new ImGearARTTextFromFile(
    igRectangle, "test.txt", igRGBQuadText,
    "Arial", (float)14.0, ImGearARTFontStyles.Regular
);
// Add the annotation to the ARTPage.
igARTPage.AddMark(igARTTextFromFile, ImGearARTCoordinatesType.IMAGE_COORD);
' 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 annotation with the contents of test.txt.
Dim igARTTextFromFile As New ImGearARTTextFromFile( _
 igRectangle, "test.txt", igRGBQuadText, _
 "Arial", CSng(14), ImGearARTFontStyles.Regular)
' Add the annotation to the ARTPage.
igARTPage.AddMark(igARTTextFromFile, ImGearARTCoordinatesType.IMAGE_COORD)
Inheritance Hierarchy

System.Object
   ImageGear.ART.ImGearARTSelection
      ImageGear.ART.ImGearARTMark
         ImageGear.ART.ImGearARTTextFromFile

See Also

Reference

ImGearARTTextFromFile Members
ImageGear.ART Namespace