TabStyle.cs 860 B

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