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
x
intThe x location of the rectangle
y
intThe y location of the rectangle
text
ustringThe text to measure
direction
TextDirectionThe text direction.