Наследование: XTextElement
Пример #1
0
        private void AddingChild(StringBuilder stringBuilder, XInline child)
        {
            var lastCharacter = stringBuilder.Length > 0 ? stringBuilder[stringBuilder.Length - 1] : '\0';

            if (child is XLineBreak)
            {
                return;
            }

            if (FormattingCalculator.RequiresSpace(lastCharacter, (child.Text ?? string.Empty).FirstOrDefault()))
            {
                stringBuilder.Append(" ");
            }
        }
Пример #2
0
 protected bool Equals(XInline other)
 {
     return(Equals(Text, other.Text));
 }
Пример #3
0
 private void AddChild(StringBuilder stringBuilder, XInline child, bool formatted)
 {
     stringBuilder.Append(formatted ? child.ToString() : child.ToPlainString());
 }
Пример #4
0
 public void AddChild(XInline child)
 {
     children.Add(child);
 }
Пример #5
0
 protected bool Equals(XInline other)
 {
     return Equals(Text, other.Text);
 }
Пример #6
0
        private void AddingChild(StringBuilder stringBuilder, XInline child)
        {
            var lastCharacter = stringBuilder.Length > 0 ? stringBuilder[stringBuilder.Length - 1] : '\0';

            if (child is XLineBreak)
                return;

            if (FormattingCalculator.RequiresSpace(lastCharacter, (child.Text ?? string.Empty).FirstOrDefault()))
                stringBuilder.Append(" ");
        }
Пример #7
0
 private void AddChild(StringBuilder stringBuilder, XInline child, bool formatted)
 {
     stringBuilder.Append(formatted ? child.ToString() : child.ToPlainString());
 }
Пример #8
0
 public void AddChild(XInline child)
 {
     children.Add(child);
 }