Method CalcRect
CalcRect(int, int, ustring, TextDirection)
Calculates the rectangle required to hold text, assuming no word wrapping.
public static Rect CalcRect(int x, int y, ustring text, TextDirection direction = TextDirection.LeftRight_TopBottom)
Parameters
xintThe x location of the rectangle
yintThe y location of the rectangle
textustringThe text to measure
directionTextDirectionThe text direction.