Print aligned string inside the defined rectangle, truncating if bottom is reached
| C# |
public int PrintLineRect( string str, int x, int y, int w, int h, Background flag, LineAlignment align )
- str (String)
- String to print
- x (Int32)
- x (Width) position of first character
- y (Int32)
- y (Height) position of first character
- w (Int32)
- Width of rectangle to print in
- h (Int32)
- Height of rectangle to print in. If 0, string is only truncated if reaches bottom of console.
- flag (Background)
- Background flag
- align (LineAlignment)
- Alignment of string
Number of lines printed