/// <summary> /// Sets the text /// </summary> public static ElementData Text(this ElementData elementData, string text) { elementData.Text = text; return(elementData); }
/// <summary> /// Sets the colors /// </summary> public static ElementData Colors(this ElementData elementData, Color foregroundColor, Color backgroundColor) { elementData.ForegroundColor = foregroundColor; elementData.BackgroundColor = backgroundColor; return(elementData); }
public static ElementData ColumnSpan(this ElementData elementData, int columnSpan) { elementData.ColumnSpan = columnSpan; return(elementData); }
public static ElementData RowSpan(this ElementData elementData, int rowSpan) { elementData.RowSpan = rowSpan; return(elementData); }
/// <summary> /// Sets the margin size of the Grid class, not supported on other classes /// </summary> public static ElementData Margin(this ElementData elementData, int width, int height) { elementData.MarginWidth = width; elementData.MarginHeight = height; return(elementData); }
/// <summary> /// Sets the width and height of the Grid class, other elements automatically figure out their size /// </summary> public static ElementData Size(this ElementData elementData, int width, int height) { elementData.Width = width; elementData.Height = height; return(elementData); }
/// <summary> /// Sets the console target for Grid classes /// </summary> public static ElementData Target(this ElementData elementData, IConsole target) { elementData.Target = target; return(elementData); }
/// <summary> /// Sets the OnEnterPressed event and parameter for classes that support it /// </summary> public static ElementData Pressed(this ElementData elementData, EnterPressedDelegate enterPressed, object parameter) { elementData.Parameter = parameter; elementData.OnEnterPressed = enterPressed; return(elementData); }
/// <summary> /// Sets the highlight colors /// </summary> public static ElementData Highlight(this ElementData elementData, Color foregroundColor, Color backgroundColor) { elementData.HighlightForegroundColor = foregroundColor; elementData.HighlightBackgroundColor = backgroundColor; return(elementData); }