Method | Description | |
---|---|---|
After ( IDomObject element ) : |
Insert an element, specified by the parameter, after each element in the set of matched elements.
|
|
After ( IEnumerable |
Insert elements, specified by the parameter, after each element in the set of matched elements.
|
|
After ( string selector ) : |
Insert content, specified by the parameter, after each element in the set of matched elements.
|
|
Append ( ) : |
Insert content, specified by the parameter, to the end of each element in the set of matched elements.
|
|
Append ( Func |
Insert content, specified by the parameter, to the end of each element in the set of matched elements.
|
|
Append ( Func |
Insert content, specified by the parameter, to the end of each element in the set of matched elements.
|
|
Append ( Func |
Appends a func.
|
|
Append ( IDomObject element ) : |
Insert the element, specified by the parameter, to the end of each element in the set of matched elements.
|
|
Append ( IEnumerable |
Insert the sequence of elements, specified by the parameter, to the end of each element in the set of matched elements.
|
|
CQ ( ) : System |
Creates a new, empty CQ object.
|
|
CQ ( IDomObject element ) : System |
Create a new CQ object wrapping a single element. This differs from the CQ.Create(IDomObject) method in that this document is still related to its owning document; this is the same as if the element had just been selected. The Create method, conversely, creates an entirely new Document context contining a single element (a clone of this element). |
|
CQ ( IDomObject element, |
Create a new CQ object wrapping a single DOM element, in the context of another CQ object. This differs from the overload accepting a single IDomObject parameter in that it associates the new object with a previous object, as if it were part of a selector chain. In practice this will rarely make a difference, but some methods such as CQ.End use this information. |
|
CQ ( IEnumerable |
Create a new CsQuery object wrapping an existing sequence of elements.
|
|
CQ ( IEnumerable |
Create a new CsQuery object from a set of DOM elements, assigning the 2nd parameter as a context for this object.
|
|
CQ ( System.Stream html, |
Create a new CQ object from an HTML stream. CQ.Create(char[])
|
|
CQ ( System.Text.TextReader html, HtmlParsingMode parsingMode = HtmlParsingMode.Auto, HtmlParsingOptions parsingOptions = HtmlParsingOptions.Default, DocType docType = DocType.Default ) : System |
Create a new CQ object from an HTML string.
|
|
CQ ( string selector, |
Create a new CsQuery object using an existing instance and a selector. if the selector is null or missing, then it will contain no selection results.
|
|
CQ ( string html, HtmlParsingMode parsingMode = HtmlParsingMode.Auto, HtmlParsingOptions parsingOptions = HtmlParsingOptions.Default, DocType docType = DocType.Default ) : System |
Create a new CQ object from an HTML string.
|
|
CQ ( string selector, object css, |
Create a new CsQuery object from a selector or HTML, and assign CSS, within a context.
|
|
CQ ( string selector, string cssJson, |
Create a new CsQuery object from a selector HTML, and assign CSS from a JSON string, within a context.
|
|
Create ( ) : |
Create an empty CQ object.
|
|
Create ( IDomObject element ) : |
Create a new CQ object from a single element. Unlike the constructor method CsQuery.CQ this new objet is not bound to any context from the element.
|
|
Create ( IEnumerable |
Creeate a new CQ object from a squence of elements, or another CQ object. The new object will contain clones of the original objects; they are no longer bound to their owning context. If you want to wrap these elements and retain their context, use "new CQ(...)" instead.
|
|
Create ( System.Stream html ) : |
Create a new CQ object from a stream of HTML text, attempting to automatically detect the character set encoding from BOM.
|
|
Create ( System.Stream html, |
Create a new CQ from a stream of HTML text in the specified encoding.
|
|
Create ( System.Stream html, |
Create a new CQ object from a stream of HTML, treating the HTML as a content document.
|
|
Create ( System.Text.TextReader html ) : |
Create a new CQ object from a TextReader containing HTML.
|
|
Create ( System.Text.TextReader html, HtmlParsingMode parsingMode = HtmlParsingMode.Auto, HtmlParsingOptions parsingOptions = HtmlParsingOptions.Default, DocType docType = DocType.Default ) : |
Create a new CQ object from a TextReader containg HTML
|
|
Create ( char html ) : |
Create a new CQ object from an HTML character array. Node: this method is obsolete; it may be removed in a future release. Character arrays were supported in prior versions because this was how all data was converted internally; this is not the case any more, and it's an unlikely format for typical input. Use string or stream methods instead.
|
|
Create ( string html ) : |
Create a new CQ object from a single element. Unlike the constructor method CsQuery.CQ this new objet is not bound to any context from the element.
|
|
Create ( string html, HtmlParsingMode parsingMode = HtmlParsingMode.Auto, HtmlParsingOptions parsingOptions = HtmlParsingOptions.Default, DocType docType = DocType.Default ) : |
Creeate a new CQ object from an HTML string.
|
|
Create ( string html, object quickSet ) : |
Create a new CQ from an HTML fragment, and use quickSet to create attributes (and/or css)
|
|
CreateDocument ( System.Stream html ) : |
Creates a new DOM from a stream containing HTML
|
|
CreateDocument ( System.Stream html, |
Creeate a new DOM from HTML text using full HTML5 tag generation.
|
|
CreateDocument ( System.Text.TextReader html ) : |
Creates a new DOM from a stream containing HTML
|
|
CreateDocument ( string html ) : |
Creeate a new DOM from HTML text using full HTML5 tag generation.
|
|
CreateDocumentFromFile ( string htmlFile ) : |
Creates a new DOM from an HTML file.
|
|
CreateFragment ( IEnumerable |
Create a new CQ object from a sequence of elements, or another CQ object.
|
|
CreateFragment ( string html ) : |
Create a new fragment from a TextReader containing HTML text.
|
|
CreateFragment ( string html, string context ) : |
Creeate a new fragment from HTML text, in the context of a specific HTML tag.
|
|
CreateFromFile ( string htmlFile ) : |
Creates a new DOM from an HTML file.
|
Method | Description | |
---|---|---|
CreateNew ( |
Bind this instance to a new DomFragment created from HTML in a specific HTML tag context.
|
|
CreateNewDocument ( ) : void |
Bind this instance to a new empty DomDocument configured with the default options.
|
|
CreateNewFragment ( ) : void |
Bind this instance to a new empty DomFragment configured with the default options.
|
|
CreateNewFragment ( |
Bind this instance to a new DomFragment created from HTML using the specified parsing mode and element context
|
|
CreateNewFragment ( IEnumerable |
Bind this instance to a new DomFragment created from a sequence of elements.
|
|
InsertAtOffset ( CQ target, int offset, CQ &insertedElements ) : CQ |
Insert every element in the selection at or after the index of each target (adding offset to the index). If there is more than one target, the a clone is made of the selection for the 2nd and later targets. This is a helper for Before and After. There is special handling when the target is not part of a DOM. Instead of altering the DOM, this method will alter the selection set, and return a CQ object that contains the new sequence. Normally, it would return the same CQ object (but alter the DOM). |
|
InsertAtOffset ( IEnumerable |
Inserts an element at the specified offset from a target. Helper method for Before and After.
|
Method | Description | |
---|---|---|
Append ( IEnumerable |
Append each element passed by parameter to each element in the selection set. The inserted elements are returned.
|
|
ConfigureNewInstance ( |
||
ConfigureNewInstance ( |
||
ConfigureNewInstance ( |
Configures a new instance for a sequence of elements and an existing context.
|
|
ConfigureNewInstance ( string selector, |
Configures a new instance for a sequence of elements and an existing context.
|
|
GetTrueTarget ( IDomElement target ) : IDomElement |
Deals with tbody as the target of appends.
|
|
NewInstance ( IDomObject element, CQ context ) : CQ | ||
NewInstance ( IEnumerable |
||
NewInstance ( IEnumerable |
||
NewInstance ( string html ) : CQ |
public After ( IDomObject element ) : |
||
element | IDomObject | /// The element to insert. /// |
return |
public After ( IEnumerable |
||
elements | IEnumerable |
/// The elements to insert. /// |
return |
public After ( string selector ) : |
||
selector | string | /// A CSS selector that determines the elements to insert. /// |
return |
public Append ( Func |
||
func | Func |
/// A delegate to a function that returns a sequence of IDomElement objects to insert at the end /// of each element in the set of matched elements. Receives the index position of the element in /// the set and the old HTML value of the element as arguments. Within the function, this refers /// to the current element in the set. /// |
return |
public Append ( Func |
||
func | Func |
/// A delegate to a function that returns an IDomElement to insert at the end of each element in /// the set of matched elements. Receives the index position of the element in the set and the /// old HTML value of the element as arguments. Within the function, this refers to the current /// element in the set. /// |
return |
public Append ( Func |
||
func | Func |
/// A delegate to a function that returns an HTML string to insert at the end /// of each element in the set of matched elements. Receives the index position of the element in /// the set and the old HTML value of the element as arguments. Within the function, this refers /// to the current element in the set. /// |
return |
public Append ( IDomObject element ) : |
||
element | IDomObject | /// The element to exclude. /// |
return |
public Append ( IEnumerable |
||
elements | IEnumerable |
/// The elements to be excluded. /// |
return |
public CQ ( IDomObject element ) : System | ||
element | IDomObject | /// The element. /// |
return | System |
public CQ ( IDomObject element, |
||
element | IDomObject | /// The element to wrap. /// |
context | /// The context. /// | |
return | System |
public CQ ( IEnumerable |
||
elements | IEnumerable |
/// A sequence of elements to populate the object /// |
return | System |
public CQ ( IEnumerable |
||
elements | IEnumerable |
/// The elements that make up the selection set in the new object /// |
context | /// A CQ object that will be assigned as the context for this one. /// | |
return | System |
public CQ ( System.Stream html, |
||
html | System.Stream | /// The html source of the new document. /// |
encoding | /// The character set encoding. /// | |
parsingMode | HtmlParsingMode | /// The HTML parsing mode. /// |
parsingOptions | HtmlParsingOptions | /// (optional) options for controlling the parsing. /// |
docType | DocType | /// (optional) type of the document. /// |
return | System |
public CQ ( System.Text.TextReader html, HtmlParsingMode parsingMode = HtmlParsingMode.Auto, HtmlParsingOptions parsingOptions = HtmlParsingOptions.Default, DocType docType = DocType.Default ) : System | ||
html | System.Text.TextReader | /// The html source of the new document. /// |
parsingMode | HtmlParsingMode | /// The HTML parsing mode. /// |
parsingOptions | HtmlParsingOptions | /// (optional) options for controlling the parsing. /// |
docType | DocType | /// (optional) type of the document. /// |
return | System |
public CQ ( string selector, |
||
selector | string | /// A valid CSS selector. /// |
context | /// The context. /// | |
return | System |
public CQ ( string html, HtmlParsingMode parsingMode = HtmlParsingMode.Auto, HtmlParsingOptions parsingOptions = HtmlParsingOptions.Default, DocType docType = DocType.Default ) : System | ||
html | string | /// The HTML source. /// |
parsingMode | HtmlParsingMode | /// The HTML parsing mode. /// |
parsingOptions | HtmlParsingOptions | /// (optional) options for controlling the parsing. /// |
docType | DocType | /// (optional) type of the document. /// |
return | System |
public CQ ( string selector, object css, |
||
selector | string | /// The selector or HTML markup /// |
css | object | /// The object whose property names and values map to CSS /// |
context | /// The context /// | |
return | System |
public CQ ( string selector, string cssJson, |
||
selector | string | /// The /// |
cssJson | string | /// The JSON containing CSS /// |
context | /// The context /// | |
return | System |
public static Create ( IDomObject element ) : |
||
element | IDomObject | /// The element to wrap /// |
return |
public static Create ( IEnumerable |
||
elements | IEnumerable |
/// A sequence of elements. /// |
return |
public static Create ( System.Stream html ) : |
||
html | System.Stream | /// An open Stream. /// |
return |
public static Create ( System.Stream html, |
||
html | System.Stream | /// An open Stream. /// |
encoding | /// The character set encoding. /// | |
return |
public static Create ( System.Stream html, |
||
html | System.Stream | /// An open Stream. /// |
encoding | /// The character set encoding. /// | |
parsingMode | HtmlParsingMode | /// (optional) the mode. /// |
parsingOptions | HtmlParsingOptions | /// (optional) options for controlling the parsing. /// |
docType | DocType | /// (optional) type of the document. /// |
return |
public static Create ( System.Text.TextReader html ) : |
||
html | System.Text.TextReader | /// A TextReader containing HTML. /// |
return |
public static Create ( System.Text.TextReader html, HtmlParsingMode parsingMode = HtmlParsingMode.Auto, HtmlParsingOptions parsingOptions = HtmlParsingOptions.Default, DocType docType = DocType.Default ) : |
||
html | System.Text.TextReader | /// A string of HTML. /// |
parsingMode | HtmlParsingMode | /// (optional) the mode. /// |
parsingOptions | HtmlParsingOptions | /// (optional) options for controlling the parsing. /// |
docType | DocType | /// (optional) type of the document. /// |
return |
public static Create ( char html ) : |
||
html | char | /// The HTML source for the document. /// |
return |
public static Create ( string html ) : |
||
html | string | /// A string containing HTML. /// |
return |
public static Create ( string html, HtmlParsingMode parsingMode = HtmlParsingMode.Auto, HtmlParsingOptions parsingOptions = HtmlParsingOptions.Default, DocType docType = DocType.Default ) : |
||
html | string | /// A string containing HTML. /// |
parsingMode | HtmlParsingMode | /// (optional) the mode. /// |
parsingOptions | HtmlParsingOptions | /// (optional) options for controlling the parsing. /// |
docType | DocType | /// (optional) type of the document. /// |
return |
public static Create ( string html, object quickSet ) : |
||
html | string | /// A string of HTML. /// |
quickSet | object | /// an object containing CSS properties and attributes to be applied to the resulting fragment. /// |
return |
public static CreateDocument ( System.Stream html ) : |
||
html | System.Stream | /// An open Stream /// |
return |
public static CreateDocument ( System.Stream html, |
||
html | System.Stream | /// An open Stream. /// |
encoding | /// The character set encoding. /// | |
return |
public static CreateDocument ( System.Text.TextReader html ) : |
||
html | System.Text.TextReader | /// A n open Stream /// |
return |
public static CreateDocument ( string html ) : |
||
html | string | /// A string of HTML /// |
return |
public static CreateDocumentFromFile ( string htmlFile ) : |
||
htmlFile | string | /// The full path to the file /// |
return |
public static CreateFragment ( IEnumerable |
||
elements | IEnumerable |
/// A sequence of elements. /// |
return |
public static CreateFragment ( string html ) : |
||
html | string | /// A string of HTML. /// |
return |
public static CreateFragment ( string html, string context ) : |
||
html | string | /// A string of HTML. /// |
context | string | /// The HTML tag name which is the context /// |
return |
public static CreateFromFile ( string htmlFile ) : |
||
htmlFile | string | /// The full path to the file /// |
return |
protected CreateNew ( |
||
target | /// The target. /// | |
html | System.Stream | /// The HTML. /// |
encoding | /// The character set encoding. /// | |
parsingMode | HtmlParsingMode | /// The HTML parsing mode. /// |
parsingOptions | HtmlParsingOptions | /// (optional) options for controlling the parsing. /// |
docType | DocType | /// (optional) type of the document. /// |
return | void |
protected CreateNewFragment ( |
||
target | /// The target. /// | |
html | string | /// The HTML. /// |
context | string | /// The context (e.g. an HTML tag name) /// |
docType | DocType | /// (optional) type of the document. /// |
return | void |
protected CreateNewFragment ( IEnumerable |
||
elements | IEnumerable |
/// The elements to provide the source for this object's DOM. /// |
return | void |
protected InsertAtOffset ( CQ target, int offset, CQ &insertedElements ) : CQ | ||
target | CQ | /// The target element. /// |
offset | int | /// The offset from the target at which to begin inserting. /// |
insertedElements | CQ | /// [out] The inserted elements. /// |
return | CQ |
protected InsertAtOffset ( IEnumerable |
||
target | IEnumerable |
/// Target for the. /// |
offset | int | /// The offset. /// |
return | CQ |