GetTextVectors

Top  Previous  Next

 

GetTextVectors (Method)

 

Use this method if you want to get a text as array of lines

 

Syntax:

Function GetTextVectors(sText As String, sFontName As String, TextScale As Single, fBold As Boolean, fItalic As Boolean, x1() As Single, y1() As Single, x2() As Single, y2() As Single) As Integer

 

The GetTextVectors method syntax consists of the following:

Parameter

Data Type

Description

sText

String

A String expression that defines the text

sFontName

String

Is the font name of the text

TextScale

Single

Is the scale of the text

fBold

Boolean

If true then the text is bold

fItalic

Boolean

If true then the text is italic

x1()

Single

Is an array of the x coordinates of the lines first point

y1()

Single

Is an array of the y coordinates of the lines first point

x2()

Single

Is an array of the x coordinates of the lines second point

y2()

Single

Is an array of the y coordinates of the lines second point

 

Return value:

Integer - Returns the upper bound of the arrays

 

Example