Show / Hide Table of Contents

Class FluentUtility

Provides a set of static methods for jQuery-like method chainings.

Inheritance
System.Object
FluentUtility
Namespace: Supremes.Fluent
Assembly: Supremes.dll
Syntax
public static class FluentUtility : object

Methods

Charset(DocumentOutputSettings, Encoding)

Set the current output charset of the specified document settings, and returns the document settings itself.

Declaration
public static DocumentOutputSettings Charset(this DocumentOutputSettings self, Encoding charset)
Parameters
Type Name Description
DocumentOutputSettings self

The input DocumentOutputSettings, which acts as the this instance for the extension method.

Encoding charset

the new charset to use

Returns
Type Description
DocumentOutputSettings

The input DocumentOutputSettings, for method chaining.

See Also
Charset

Charset(DocumentOutputSettings, String)

Set the current output charset of the specified document settings, and returns the document settings itself.

Declaration
public static DocumentOutputSettings Charset(this DocumentOutputSettings self, String charset)
Parameters
Type Name Description
DocumentOutputSettings self

The input DocumentOutputSettings, which acts as the this instance for the extension method.

String charset

the new charset name to use

Returns
Type Description
DocumentOutputSettings

The input DocumentOutputSettings, for method chaining.

See Also
Charset

ClassNames(Element, ICollection<String>)

Set all of the specified element's class names, and returns the element itself.

Declaration
public static Element ClassNames(this Element self, ICollection<string> classNames)
Parameters
Type Name Description
Element self

The input Element, which acts as the this instance for the extension method.

ICollection<System.String> classNames

the new set of classes

Returns
Type Description
Element

The input Element, for method chaining.

See Also
ClassNames

EscapeMode(DocumentOutputSettings, DocumentEscapeMode)

Set the current HTML escape mode of the specified document settings, and returns the document settings itself.

Declaration
public static DocumentOutputSettings EscapeMode(this DocumentOutputSettings self, DocumentEscapeMode escapeMode)
Parameters
Type Name Description
DocumentOutputSettings self

The input DocumentOutputSettings, which acts as the this instance for the extension method.

DocumentEscapeMode escapeMode

the new escape mode to use

Returns
Type Description
DocumentOutputSettings

The input DocumentOutputSettings, for method chaining.

See Also
EscapeMode

Html(Element, String)

Set the specified element's inner HTML, and returns the element itself.

Declaration
public static Element Html(this Element self, string html)
Parameters
Type Name Description
Element self

The input Element, which acts as the this instance for the extension method.

System.String html

HTML to parse and set into this element

Returns
Type Description
Element

The input Element, for method chaining.

See Also
Html

Html(Elements, String)

Set the inner HTML of each matched element, and returns the elements itself.

Declaration
public static Elements Html(this Elements self, string html)
Parameters
Type Name Description
Elements self

The input Elements, which acts as the this instance for the extension method.

System.String html

HTML to parse and set into each matched element

Returns
Type Description
Elements

The input Elements, for method chaining.

See Also
Html

IndentAmount(DocumentOutputSettings, Int32)

Set the current tag indent amount of the specified document settings, used when pretty printing, and returns the document settings itself.

Declaration
public static DocumentOutputSettings IndentAmount(this DocumentOutputSettings self, int indentAmount)
Parameters
Type Name Description
DocumentOutputSettings self

The input DocumentOutputSettings, which acts as the this instance for the extension method.

System.Int32 indentAmount

number of spaces to use for indenting each level

Returns
Type Description
DocumentOutputSettings

The input DocumentOutputSettings, for method chaining.

See Also
IndentAmount

Outline(DocumentOutputSettings, Boolean)

Set if outline mode is enabled to the specified document settings, and returns the document settings itself.

Declaration
public static DocumentOutputSettings Outline(this DocumentOutputSettings self, bool outlineMode)
Parameters
Type Name Description
DocumentOutputSettings self

The input DocumentOutputSettings, which acts as the this instance for the extension method.

System.Boolean outlineMode

the new outline mode

Returns
Type Description
DocumentOutputSettings

The input DocumentOutputSettings, for method chaining.

See Also
Outline

OutputSettings(Document, DocumentOutputSettings)

Set the specified document's current output settings, and returns the document itself.

Declaration
public static Document OutputSettings(this Document self, DocumentOutputSettings outputSettings)
Parameters
Type Name Description
Document self

The input Document, which acts as the this instance for the extension method.

DocumentOutputSettings outputSettings

new output settings

Returns
Type Description
Document

The input Document, for method chaining.

See Also
OutputSettings

PrettyPrint(DocumentOutputSettings, Boolean)

Set if pretty printing is enabled to the specified document settings, and returns the document settings itself.

Declaration
public static DocumentOutputSettings PrettyPrint(this DocumentOutputSettings self, bool pretty)
Parameters
Type Name Description
DocumentOutputSettings self

The input DocumentOutputSettings, which acts as the this instance for the extension method.

System.Boolean pretty

the new pretty print setting

Returns
Type Description
DocumentOutputSettings

The input DocumentOutputSettings, for method chaining.

See Also
PrettyPrint

QuirksMode(Document, DocumentQuirksMode)

Set the specified document's quirks mode, and returns the document itself.

Declaration
public static Document QuirksMode(this Document self, DocumentQuirksMode quirksMode)
Parameters
Type Name Description
Document self

The input Document, which acts as the this instance for the extension method.

DocumentQuirksMode quirksMode

new quirks mode

Returns
Type Description
Document

The input Document, for method chaining.

See Also
QuirksMode

Syntax(DocumentOutputSettings, DocumentSyntax)

Set the current output syntax of the specified document settings, and returns the document settings itself.

Declaration
public static DocumentOutputSettings Syntax(this DocumentOutputSettings self, DocumentSyntax syntax)
Parameters
Type Name Description
DocumentOutputSettings self

The input DocumentOutputSettings, which acts as the this instance for the extension method.

DocumentSyntax syntax

the new syntax to use

Returns
Type Description
DocumentOutputSettings

The input DocumentOutputSettings, for method chaining.

See Also
Syntax

TagName(Element, String)

Set the name of the tag for the specified element, and returns the element itself.

Declaration
public static Element TagName(this Element self, string tagName)
Parameters
Type Name Description
Element self

The input Element, which acts as the this instance for the extension method.

System.String tagName

the new tag name

Returns
Type Description
Element

The input Element, for method chaining.

See Also
TagName

TagName(Elements, String)

Set the tag name of each matched element, and returns the elements itself.

Declaration
public static Elements TagName(this Elements self, string tagName)
Parameters
Type Name Description
Elements self

The input Elements, which acts as the this instance for the extension method.

System.String tagName

the new tag name to set into each matched element

Returns
Type Description
Elements

The input Elements, for method chaining.

See Also
TagName

Text(Document, String)

Set the combined text of the specified document and all its children, and returns the document itself.

Declaration
public static Document Text(this Document self, string text)
Parameters
Type Name Description
Document self

The input Document, which acts as the this instance for the extension method.

System.String text

unencoded text

Returns
Type Description
Document

The input Document, for method chaining.

See Also
Text

Text(TextNode, String)

Set text content of the specified text node, and returns the text node itself.

Declaration
public static TextNode Text(this TextNode self, string text)
Parameters
Type Name Description
TextNode self

The input TextNode, which acts as the this instance for the extension method.

System.String text

unencoded text

Returns
Type Description
TextNode

The input TextNode, for method chaining.

See Also
Text

Val(Element, String)

Set the value of the specified form element (input, textarea, etc), and returns the element itself.

Declaration
public static Element Val(this Element self, string value)
Parameters
Type Name Description
Element self

The input Element, which acts as the this instance for the extension method.

System.String value

the new value to set

Returns
Type Description
Element

The input Element, for method chaining.

See Also
Val

Val(Elements, String)

Set the form element's value in each of the matched elements, and returns the elements itself.

Declaration
public static Elements Val(this Elements self, string value)
Parameters
Type Name Description
Elements self

The input Elements, which acts as the this instance for the extension method.

System.String value

the new value to set into each matched element

Returns
Type Description
Elements

The input Elements, for method chaining.

See Also
Val

WholeData(DataNode, String)

Set the data contents of the specified node, and returns the node itself.

Declaration
public static DataNode WholeData(this DataNode self, string data)
Parameters
Type Name Description
DataNode self

The input DataNode, which acts as the this instance for the extension method.

System.String data

unencoded data

Returns
Type Description
DataNode

The input DataNode, for method chaining.

See Also
WholeData
Back to top Generated by DocFX