public IntXYPair GetPositionActual() { switch (alignment) { case Alignment.Right: return(new IntXYPair(position.GetX() - GetTextLength() + 1, position.GetY())); case Alignment.Center: return(new IntXYPair(position.GetX() - (GetTextLength() - 1) / 2, position.GetY())); default: return(position); } }
public FreeString(string text, IntXYPair position, Color foregroundColor, Color backgroundColor) : this(text, position.GetX(), position.GetY(), foregroundColor, backgroundColor) { }
public FreeString(string text, IntXYPair position) : this(text, position.GetX(), position.GetY()) { }