Label.cs 1007 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // Label.cs: Label control
  3. //
  4. // Authors:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Text.RegularExpressions;
  11. using NStack;
  12. namespace Terminal.Gui {
  13. /// <summary>
  14. /// The Label <see cref="View"/> displays a string at a given position and supports multiple lines separted by newline characters. Multi-line Labels support word wrap.
  15. /// </summary>
  16. /// <remarks>
  17. /// The <see cref="Label"/> view is functionality identical to <see cref="View"/> and is included for API backwards compatibilty.
  18. /// </remarks>
  19. public class Label : View {
  20. /// <inheritdoc/>
  21. public Label ()
  22. {
  23. }
  24. /// <inheritdoc/>
  25. public Label (Rect frame) : base (frame)
  26. {
  27. }
  28. /// <inheritdoc/>
  29. public Label (ustring text) : base (text)
  30. {
  31. }
  32. /// <inheritdoc/>
  33. public Label (Rect rect, ustring text) : base (rect, text)
  34. {
  35. }
  36. /// <inheritdoc/>
  37. public Label (int x, int y, ustring text) : base (x, y, text)
  38. {
  39. }
  40. }
  41. }