Inheritance: XTextElement
Esempio n. 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(" ");
            }
        }
Esempio n. 2
0
 protected bool Equals(XInline other)
 {
     return(Equals(Text, other.Text));
 }
Esempio n. 3
0
 private void AddChild(StringBuilder stringBuilder, XInline child, bool formatted)
 {
     stringBuilder.Append(formatted ? child.ToString() : child.ToPlainString());
 }
Esempio n. 4
0
 public void AddChild(XInline child)
 {
     children.Add(child);
 }
Esempio n. 5
0
 protected bool Equals(XInline other)
 {
     return Equals(Text, other.Text);
 }
Esempio n. 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(" ");
        }
Esempio n. 7
0
 private void AddChild(StringBuilder stringBuilder, XInline child, bool formatted)
 {
     stringBuilder.Append(formatted ? child.ToString() : child.ToPlainString());
 }
Esempio n. 8
0
 public void AddChild(XInline child)
 {
     children.Add(child);
 }