Image Viewer CP ActiveX Control

DrawTextAlignment

 

Set the text alignment before call DrawText method.
 

Public Function DrawTextAlignment( _
   ByVal iAlignment As Integer
) 

 

Parameter

iAlignment
   0 - Left Alignment
   1 - Center Alignment
   2 - Right Alignment

Return Value

No return value.


Example

   

Visual Basic Syntax
ImageViewer1.FileName="c:\test1.jpg"
ImageViewer1.ShowText=True
ImageViewer1.DrawTextAlignment 2
ImageViewer1.DrawText 0,100 ,"Line 1" + chr(13)+chr(10) +"Line 2", True