public HtmlFormatterOptions(char indentChar, int indentSize, int maxLineLength, HtmlFormatterCase elementCasing, HtmlFormatterCase attributeCasing, bool makeXhtml) { IndentChar = indentChar; IndentSize = indentSize; MaxLineLength = maxLineLength; ElementCasing = elementCasing; AttributeCasing = attributeCasing; MakeXhtml = makeXhtml; }
public HtmlFormatterOptions(char indentChar, int indentSize, int maxLineLength, HtmlFormatterCase elementCasing, HtmlFormatterCase attributeCasing, bool makeXhtml) { this._indentChar = indentChar; this._indentSize = indentSize; this._maxLineLength = maxLineLength; this._elementCasing = elementCasing; this._attributeCasing = attributeCasing; this._makeXhtml = makeXhtml; }
public HtmlFormatterOptions(char indentChar, int indentSize, int maxLineLength, HtmlFormatterCase elementCasing, HtmlFormatterCase attributeCasing, bool makeXhtml) { IndentChar = indentChar; IndentSize = indentSize; MaxLineLength = maxLineLength; ElementCasing = elementCasing; AttributeCasing = attributeCasing; MakeXhtml = makeXhtml; }
/// <summary> /// Advanced constructor to build formatter options with the minimum number of parameters needed. /// </summary> /// <param name="indentChar">Char used to indent</param> /// <param name="indentSize">Number of chars the indent char is repeated each level</param> /// <param name="maxLineLength">Dermines the forced line break</param> /// <param name="elementCasing"><code>true</code> makes all attributes upper case</param> /// <param name="attributeCasing"><code>true</code> makes all elements upper case</param> /// <param name="makeXhtml"><code>true</code> if XHTML should produced</param> public HtmlFormatterOptions(char indentChar, int indentSize, int maxLineLength, HtmlFormatterCase elementCasing, HtmlFormatterCase attributeCasing, bool makeXhtml) { _indentChar = indentChar; _indentSize = indentSize; _maxLineLength = maxLineLength; _elementCasing = elementCasing; _attributeCasing = attributeCasing; _makeXhtml = makeXhtml; _Entities = EntityFormat.Named; _preserveWhitespace = false; }