The special StringClientRun we use to support displaying a substitute string when the run is empty.
Inheritance: StringClientRun
コード例 #1
0
ファイル: ParaItem.cs プロジェクト: cambell-prince/FieldWorks
        /// <summary>
        /// Return an otherwise equivalent string client run that has the specified Contents.
        /// Subclasses should override to return the appropriate subclass and copy any additional information.
        /// </summary>
        internal override StringClientRun CopyWithNewContents(string newContents)
        {
            var result = new SubstituteStringClientRun(newContents, Style, m_substitute, m_substituteStyle);

            result.Hookup = Hookup;
            return(result);
        }
コード例 #2
0
ファイル: ParaItem.cs プロジェクト: sillsdev/FieldWorks
		/// <summary>
		/// Return an otherwise equivalent string client run that has the specified Contents.
		/// Subclasses should override to return the appropriate subclass and copy any additional information.
		/// </summary>
		internal override StringClientRun CopyWithNewContents(string newContents)
		{
			var result = new SubstituteStringClientRun(newContents, Style, m_substitute, m_substituteStyle);
			result.Hookup = Hookup;
			return result;
		}