mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-27 16:28:00 +01:00
17 lines
493 B
C#
17 lines
493 B
C#
namespace Spectre.Console;
|
|
|
|
/// <summary>
|
|
/// Contains extension methods for <see cref="char"/>.
|
|
/// </summary>
|
|
public static partial class CharExtensions
|
|
{
|
|
/// <summary>
|
|
/// Gets the cell width of a character.
|
|
/// </summary>
|
|
/// <param name="character">The character to get the cell width of.</param>
|
|
/// <returns>The cell width of the character.</returns>
|
|
public static int GetCellWidth(this char character)
|
|
{
|
|
return Cell.GetCellLength(character);
|
|
}
|
|
} |