AddText     Procedure (Sub)

Public Sub AddText(Text$, x, y, Optional Color, Optional Font$, Optional Hjust, Optional Vjust, Optional angle, Optional ShadowColor, Optional xShadowOffSet, Optional yShadowOffSet)

Add text to the graph image at any location.

ParameterTypeDescription

Text$

String

Text

x

Variant

Text horizontal location, as % of graph image area

y

Variant

Text vertical location, as % of graph image area

Color

Variant

Text color

Font$

String

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

Hjust

Variant

Horizontal justification: 0=left, 1=center, 2=right

Vjust

Variant

Vertical justification: 0=top, 1=center, 2=bottom

angle

Variant

Text orientation (angle in degrees off horizontal)

ShadowColor

Variant

Optional color for a shadow behind the text

xShadowOffSet

Variant

Shadow horizontal offset in pixels

yShadowOffSet

Variant

Shadow vertical offset in pixels

Example..

Call ecGraph3D1.AddText(text, x, y, color, font, hjust, vjust, angle, shadowcolor, xshadowoffset, yshadowoffset) 


      Contents     Variables     Events     Properties     Functions     Subs

ecGraph3D    Copyright © 2008, Encore Consulting Pty Ltd