TabStyle.cs 846 B

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