Image Viewer CP Gold SDK ActiveX Control ReferenceMethods DrawTextAlignment 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 AlignmentReturn ValueNo return value. Example Visual Basic SyntaxImageViewer1.FileName="c:\test1.jpg"ImageViewer1.ShowText=TrueImageViewer1.DrawTextAlignment 2ImageViewer1.DrawText 0,100 ,"Line 1" + chr(13)+chr(10) +"Line 2", True