OverflowableExtensions

Contains extension methods for .

Contains extension methods for IOverflowable.

Methods

public static T Crop<T>(T obj)

Crops any overflowing text.

Parameters:

obj (T)
The overflowable object instance.

Returns:

The same instance so that multiple calls can be chained.

public static T Ellipsis<T>(T obj)

Crops any overflowing text and adds an ellipsis to the end.

Parameters:

obj (T)
The overflowable object instance.

Returns:

The same instance so that multiple calls can be chained.

public static T Fold<T>(T obj)

Folds any overflowing text.

Parameters:

obj (T)
The overflowable object instance.

Returns:

The same instance so that multiple calls can be chained.

public static T Overflow<T>(T obj, Overflow overflow)

Sets the overflow strategy.

Parameters:

obj (T)
The overflowable object instance.
overflow (Overflow)
The overflow strategy to use.

Returns:

The same instance so that multiple calls can be chained.