mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-10-25 15:19:23 +00:00
33 lines
903 B
C#
33 lines
903 B
C#
using System;
|
|
|
|
namespace Spectre.Console
|
|
{
|
|
/// <summary>
|
|
/// Contains extension methods for <see cref="SpinnerColumn"/>.
|
|
/// </summary>
|
|
public static class SpinnerColumnExtensions
|
|
{
|
|
/// <summary>
|
|
/// Sets the style of the spinner.
|
|
/// </summary>
|
|
/// <param name="column">The column.</param>
|
|
/// <param name="style">The style.</param>
|
|
/// <returns>The same instance so that multiple calls can be chained.</returns>
|
|
public static SpinnerColumn Style(this SpinnerColumn column, Style style)
|
|
{
|
|
if (column is null)
|
|
{
|
|
throw new ArgumentNullException(nameof(column));
|
|
}
|
|
|
|
if (style is null)
|
|
{
|
|
throw new ArgumentNullException(nameof(style));
|
|
}
|
|
|
|
column.Style = style;
|
|
return column;
|
|
}
|
|
}
|
|
}
|