Inesoft PrintCE SDK EVC++
CPrintCE::DrawAlignedText Method

Draws a text horizontally and vertically aligned

C++ Syntax: object.DrawAlignedText(
            LPCTSTR
lpString,
            double
x,
            double
y,
            TextHorAlign
hor_align,
            TextVertAlign
vert_align
);

eVB Syntax: object.DrawAlignedText lpString, x, y, hor_align, vert_align

Parameters

lpString

text to be drawn

x

coordinate on X-line

y

coordinate on Y-line

hor_align

horizontal alignment, possible values: hLeft, hRight, hCenter (defined into PrintEnum.h for eVC, into PrintCE.bas for eVB)

vert_align

vertical alignment, possible values: vTop, vBottom, vCenter (defined into PrintEnum.h for eVC, into PrintCE.bas for eVB)

 

 

Review

Coordinates are set in the current measurement units (please refer to MeasureUnit property) , text colour is determined by TextColor property



© 2009 Inesoft. All rights reserved.