AddText     Procedure (Sub)

Public Sub AddText(Text As String, TextX As Double, TextY As Double, TextOri As Byte, TextFont As String, TextColor As Long, TextAngle As Integer, TextPercent As Boolean)

Add a text block to the current data set. Note that this should be done after data points are added to the data set, rather than before, otherwise the legend entry for this data set may not appear in the legend table.

ParameterTypeDescription

Text

String

The text to print

TextX

Double

Draw the text at this x-value...

TextY

Double

...and this y-value.

TextOri

Byte

Text orientation 0=top/left, 1=top/center, 2=top/right, 3=center/left, 4=center/centre, 5=center/right, 6=bottom/left, 7=bottom/center, 8=bottom/right

TextFont

String

Text font, eg "Font=Arial|10|bold|italic"

TextColor

Long

Text color

TextAngle

Integer

Text orientation (angle in degrees off horizontal)

TextPercent

Boolean

True if (TextX,TextY) refer to a fixed location on the graph as a percentage of graph area, False for absolute location in (x,y) coordinates.

Example

Call ecGraph1.AddText(text, textx, texty, textori, textfont, textcolor, textangle, textpercent) 


      Contents     Variables     Events     Properties     Functions     Subs

Copyright © 2007, Encore Consulting Pty Ltd