Programming Tips - gdiplus: right align text with GDI+

Date: 2015apr27 OS: Windows Library: GDI+ Language: C++ Q. gdiplus: right align text with GDI+ A. Use StringAlignmentFar. (To left align use StringAlignmentNear.) I suppose they use near/far to handle languages which read the opposite direction to English.
StringFormat format; format.SetAlignment(StringAlignmentFar); graphics.DrawString( ..., ..., ..., ..., &format, ...);