TabStyle.cs 870 B

12345678910111213141516171819
  1. #nullable disable
  2. namespace Terminal.Gui.Views;
  3. /// <summary>Describes render stylistic selections of a <see cref="TabView"/></summary>
  4. public class TabStyle
  5. {
  6. /// <summary>True to show a solid box around the edge of the control. Defaults to true.</summary>
  7. public bool ShowBorder { get; set; } = true;
  8. /// <summary>
  9. /// True to show the top lip of tabs. False to directly begin with tab text during rendering. When true header
  10. /// line occupies 3 rows, when false only 2. Defaults to true.
  11. /// <para>When <see cref="TabsOnBottom"/> is enabled this instead applies to the bottommost line of the control</para>
  12. /// </summary>
  13. public bool ShowTopLine { get; set; } = true;
  14. /// <summary>True to render tabs at the bottom of the view instead of the top</summary>
  15. public bool TabsOnBottom { get; set; } = false;
  16. }