The special TssClientRun we use to support displaying a substitute string when the run is empty.
Наследование: TssClientRun
Пример #1
0
        /// <summary>
        /// Return an otherwise equivalent Tss client run that has the specified Contents.
        /// Subclasses should override to return the appropriate subclass and copy any additional information.
        /// </summary>
        internal override TssClientRun CopyWithNewContents(ITsString newContents)
        {
            ITsString tss = newContents;
            int       var;

            if (tss == null)
            {
                tss = TsStrFactoryClass.Create().EmptyString(Tss.get_Properties(0).GetIntPropValues((int)FwTextPropType.ktptWs, out var));
            }
            var result = new SubstituteTssClientRun(tss, Style, m_substitute, m_substituteStyle);

            result.Hookup = Hookup;
            return(result);
        }
Пример #2
0
		/// <summary>
		/// Return an otherwise equivalent Tss client run that has the specified Contents.
		/// Subclasses should override to return the appropriate subclass and copy any additional information.
		/// </summary>
		internal override TssClientRun CopyWithNewContents(ITsString newContents)
		{
			ITsString tss = newContents;
			int var;
			if (tss == null)
				tss = TsStrFactoryClass.Create().EmptyString(Tss.get_Properties(0).GetIntPropValues((int)FwTextPropType.ktptWs, out var));
			var result = new SubstituteTssClientRun(tss, Style, m_substitute, m_substituteStyle);
			result.Hookup = Hookup;
			return result;
		}