CreateText Method
Declaration Description Parameters Method Result See Also Example

<< Click to Display Table of Contents >>

Navigation:  Additional Resources > OLE/COM Automation > Methods > Create >

CreateText Method
Declaration Description Parameters Method Result See Also Example

Previous pageReturn to chapter overviewNext page

 

Section

Declaration

 

function CreateText(

X, Y: Integer;

const FontName: WideString;

FontSize: Integer;

FontColor : OLE_COLOR;

const FontStyle: WideString;

Border: Integer;

const Text: WideString

): WideString;

Section

Description

Creates a Text Box containing the specified Text.

Section

Parameters

Parameter

Usage

X

X Co-ordinate

Y

Y Co-ordinate

FontName

Font Name used for the text

FontSize

Font Size used for the text

FontColor

Font Colour used for the text

FontStyle

Font Style used for the text

Border

1 - Text is surrounded by a Border, otherwise not

Text

Text in the Text box.

Section

Method Result

Returns the Name of the created Text Box.

Section

Example

TextName = PowaMasterObj.CreateText( X, Y, FontName, FontSize, FontColor, FontStyle, Border, Text);

Section

See Also

GetText

SetText

Section