# SetTextAlignment

## Description

Sets how the text should be positioned on screen. Left alignment positions the text using its top left corner, right alignment positions it using its top right corner, and center positions it using a point halfway along its top edge.

## Definition

SetTextAlignment( iTextIndex, iMode )

void agk::SetTextAlignment( UINT iTextIndex, int iMode )

## Parameters

- iTextIndex - The ID of the text object to update.
- iMode - The aligment mode to use. 0=left, 1=center, 2=right