HRESULT ShowTextAligned ( FLOAT left, FLOAT top, FLOAT right, FLOAT bottom, TextAlign align, VerticalAlign verticalAlign, BSTR text ) |
{ PDF object is supposed to be created } PDF.DrawRectangle(100, 100, 140, 40, 0); PDF.Stroke; PDF.ShowTextAligned(100, 100, 240, 140, taLeft, vaTop, 'Here is long text in the box.'); PDF.DrawRectangle(100, 150, 140, 40, 0); PDF.Stroke; PDF.ShowTextAligned(100, 150, 240, 190, taCenter, vaCenter, 'Here is long text in the box.'); PDF.DrawRectangle(100, 200, 140, 40, 0); PDF.Stroke; PDF.ShowTextAligned(100, 200, 240, 240, taRight, vaBottom, 'Here is long text in the box.'); PDF.SaveToFile("test.pdf", true);
// PDF object is supposed to be created PDF->DrawRectangle(100, 100, 140, 40, 0); PDF->Stroke(); PDF->ShowTextAligned(100, 100, 240, 140, taLeft, vaTop, "Here is long text in the box."); PDF->DrawRectangle(100, 150, 140, 40, 0); PDF->Stroke(); PDF->ShowTextAligned(100, 150, 240, 190, taCenter, vaCenter, "Here is long text in the box."); PDF->DrawRectangle(100, 200, 140, 40, 0); PDF->Stroke(); PDF->ShowTextAligned(100, 200, 240, 240, taRight, vaBottom, "Here is long text in the box."); PDF->SaveToFile("test.pdf", true);
// PDF object is supposed to be created PDF.DrawRectangle(100, 100, 140, 40, 0); PDF.Stroke(); PDF.ShowTextAligned(100, 100, 240, 140, TextAlign.taLeft, VerticalAlign.vaTop, "Here is long text in the box."); PDF.DrawRectangle(100, 150, 140, 40, 0); PDF.Stroke(); PDF.ShowTextAligned(100, 150, 240, 190, TextAlign.taCenter, VerticalAlign.vaCenter, "Here is long text in the box."); PDF.DrawRectangle(100, 200, 140, 40, 0); PDF.Stroke(); PDF.ShowTextAligned(100, 200, 240, 240, TextAlign.taRight, VerticalAlign.vaBottom, "Here is long text in the box."); PDF.SaveToFile("test.pdf", true);
' PDF object is supposed to be created PDF.DrawRectangle 100, 100, 140, 40, 0 PDF.Stroke PDF.ShowTextAligned 100, 100, 240, 140, 0, 0, "Here is long text in the box." 'TextAlign.taLeft VerticalAlign.vaTop PDF.DrawRectangle 100, 150, 140, 40, 0 PDF.Stroke PDF.ShowTextAligned 100, 150, 240, 190, 1, 1, "Here is long text in the box." 'TextAlign.taCenter VerticalAlign.vaCenter PDF.DrawRectangle 100, 200, 140, 40, 0 PDF.Stroke PDF.ShowTextAligned 100, 200, 240, 240, 2, 2, "Here is long text in the box." 'TextAlign.taRight VerticalAlign.vaBottom PDF.SaveToFile "test.pdf", true