Contains extension methods for IPaddable.
Methods
public static T PadBottom<T>(T obj, int bottom)
Sets the bottom padding.
Parameters:
obj (T)bottom (int)Returns:
The same instance so that multiple calls can be chained.
public static T Padding<T>(T obj, int left, int top, int right, int bottom)
Sets the left, top, right and bottom padding.
Parameters:
obj (T)left (int)top (int)right (int)bottom (int)Returns:
The same instance so that multiple calls can be chained.
public static T Padding<T>(T obj, int horizontal, int vertical)
Sets the horizontal and vertical padding.
Parameters:
obj (T)horizontal (int)vertical (int)Returns:
The same instance so that multiple calls can be chained.
public static T Padding<T>(T obj, Padding padding)
Sets the padding.
Parameters:
obj (T)padding (Padding)Returns:
The same instance so that multiple calls can be chained.
public static T PadLeft<T>(T obj, int left)
Sets the left padding.
Parameters:
obj (T)left (int)Returns:
The same instance so that multiple calls can be chained.
public static T PadRight<T>(T obj, int right)
Sets the right padding.
Parameters:
obj (T)right (int)Returns:
The same instance so that multiple calls can be chained.
public static T PadTop<T>(T obj, int top)
Sets the top padding.
Parameters:
obj (T)top (int)Returns:
The same instance so that multiple calls can be chained.