Contains extension methods for IAlignable.
Methods
public static T Alignment<T>(T obj, Justify? alignment)
Sets the alignment for an IAlignable object.
Parameters:
obj (T)The alignable object.
alignment (Justify?)The alignment.
Returns:
The same instance so that multiple calls can be chained.
public static T Centered<T>(T obj)
Sets the IAlignable object to be centered.
Parameters:
obj (T)The alignable object.
Returns:
The same instance so that multiple calls can be chained.
public static T LeftAligned<T>(T obj)
Sets the IAlignable object to be left aligned.
Parameters:
obj (T)The alignable object.
Returns:
The same instance so that multiple calls can be chained.
public static T RightAligned<T>(T obj)
Sets the IAlignable object to be right aligned.
Parameters:
obj (T)The alignable object.
Returns:
The same instance so that multiple calls can be chained.