Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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. }