Padding<T>(T, int, int) Method
Sets the horizontal and vertical padding.
public static T Padding<T>(this T obj, int horizontal, int vertical) where T : class, IPaddable
- Namespace
- Spectre
.Console - Containing Type
- PaddableExtensions
Parameters
-
T
- An object implementing
IPaddable
.
Parameters
- T obj
- The paddable object instance.
- int horizontal
- The left and right padding.
- int vertical
- The top and bottom padding.
Returns
- T