protected void ToDomString(RTFDomElementList elements, System.Text.StringBuilder builder, int level) { foreach (RTFDomElement element in elements) { builder.Append(Environment.NewLine); builder.Append(new string( ' ', level * 4 )); builder.Append(element.ToString()); ToDomString(element.Elements, builder, level + 1); } }
protected void ToDomString(RTFDomElementList elements, System.Text.StringBuilder builder, int level) { foreach (RTFDomElement element in elements) { builder.Append(Environment.NewLine); builder.Append( new string( ' ' , level * 4 )); builder.Append(element.ToString()); ToDomString(element.Elements, builder, level + 1); } }