public override TextRun GetSubRun(int startIndex, int length) { if (length == base.m_text.Length) { return(this); } if (startIndex > 0) { base.m_textRunProps.AddSplitIndex(startIndex); } PlaceholderTextRun placeholderTextRun = new PlaceholderTextRun(base.m_text.Substring(startIndex, length), this); placeholderTextRun.CharacterIndexInOriginal = startIndex; return(placeholderTextRun); }
public PlaceholderTextRun(string text, PlaceholderTextRun textRun, SCRIPT_LOGATTR[] scriptLogAttr) : base(text, textRun, scriptLogAttr) { this.m_placeholderBorderColor = textRun.PlaceholderBorderColor; }
public PlaceholderTextRun(string text, PlaceholderTextRun textRun) : base(text, textRun) { this.m_placeholderBorderColor = textRun.PlaceholderBorderColor; }