/************************************************************************************* DocX – DocX is the community edition of Xceed Words for .NET Copyright (C) 2009-2016 Xceed Software Inc. This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license For more features and fast professional support, pick up Xceed Words for .NET at https://xceed.com/xceed-words-for-net/ ***********************************************************************************/ using System; namespace Xceed.Words.NET { public class FormattedText : IComparable { #region Public Members public int index; public string text; public Formatting formatting; #endregion #region Constructors public FormattedText() { } #endregion #region Public Methods public int CompareTo( object obj ) { FormattedText other = ( FormattedText )obj; FormattedText tf = this; if( other.formatting == null || tf.formatting == null ) return -1; return tf.formatting.CompareTo( other.formatting ); } #endregion } }