You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FormattedText.cs 591B

123456789101112131415161718192021222324252627
  1. using System;
  2. namespace Novacode
  3. {
  4. public class FormattedText: IComparable
  5. {
  6. public FormattedText()
  7. {
  8. }
  9. public int index;
  10. public string text;
  11. public Formatting formatting;
  12. public int CompareTo(object obj)
  13. {
  14. FormattedText other = (FormattedText)obj;
  15. FormattedText tf = this;
  16. if (other.formatting == null || tf.formatting == null)
  17. return -1;
  18. return tf.formatting.CompareTo(other.formatting);
  19. }
  20. }
  21. }