Qyoto
4.0.6
Qyoto is a C# language binding for Qt
|
The QWebElementCollection class represents a collection of web elements. More...
Classes | |
class | const_iterator |
class | iterator |
The QWebElementCollection::iterator class provides an STL-style iterator for QWebElementCollection. More... | |
Public Member Functions | |
QWebElementCollection () | |
| |
QWebElementCollection (QWebElementCollection other) | |
| |
QWebElementCollection (QWebElement contextElement, string query) | |
| |
virtual void | CreateProxy () |
new void | Append (QWebElementCollection collection) |
| |
new QWebElement | At (int i) |
| |
new QWebElementCollection.const_iterator | Begin () |
| |
new System.Collections.Generic.List < QWebElement > | ToList () |
| |
new void | Dispose () |
Static Public Member Functions | |
static QWebElementCollection | operator+ (QWebElementCollection one, QWebElementCollection other) |
| |
Protected Member Functions | |
QWebElementCollection (System.Type dummy) | |
Protected Attributes | |
SmokeInvocation | interceptor |
Properties | |
QWebElementCollection.const_iterator | ConstBegin [get] |
| |
QWebElementCollection.const_iterator | ConstEnd [get] |
| |
int | Count [get] |
| |
QWebElementCollection.const_iterator | End [get] |
| |
QWebElement | First [get] |
| |
QWebElement | Last [get] |
| |
virtual System.IntPtr | SmokeObject [get, set] |
The QWebElementCollection class represents a collection of web elements.
Elements in a document can be selected using QWebElement::findAll() or using the QWebElement constructor. The collection is composed by choosing all elements in the document that match a specified CSS selector expression.
The number of selected elements is provided through the count() property. Individual elements can be retrieved by index using at().
It is also possible to iterate through all elements in the collection using Qt's foreach macro:
QWebElementCollection collection = document.findAll("p");
foreach (QWebElement paraElement, collection) {
...
}
|
protected |
QtWebKit.QWebElementCollection.QWebElementCollection | ( | ) |
Constructs an empty collection.
QtWebKit.QWebElementCollection.QWebElementCollection | ( | QWebElementCollection | other | ) |
Constructs a copy of other.
QtWebKit.QWebElementCollection.QWebElementCollection | ( | QWebElement | contextElement, |
string | query | ||
) |
Constructs a collection of elements from the list of child elements of contextElement that match the specified CSS selector query.
new void QtWebKit.QWebElementCollection.Append | ( | QWebElementCollection | collection | ) |
Extends the collection by appending all items of other.
The resulting collection may include duplicate elements.
See also operator+=().
new QWebElement QtWebKit.QWebElementCollection.At | ( | int | i | ) |
Returns the element at index position i in the collection.
new QWebElementCollection.const_iterator QtWebKit.QWebElementCollection.Begin | ( | ) |
Returns an STL-style iterator pointing to the first element in the collection.
See also end().
|
virtual |
new void QtWebKit.QWebElementCollection.Dispose | ( | ) |
|
static |
Returns a collection that contains all the elements of this collection followed by all the elements in the other collection. Duplicates may occur in the result.
See also operator+=().
new System.Collections.Generic.List<QWebElement> QtWebKit.QWebElementCollection.ToList | ( | ) |
Returns a QList object with the elements contained in this collection.
|
protected |
|
get |
Returns an STL-style iterator pointing to the first element in the collection.
See also end().
|
get |
Returns an STL-style iterator pointing to the imaginary element after the last element in the list.
See also begin().
|
get |
Returns the number of elements in the collection.
|
get |
Returns an STL-style iterator pointing to the imaginary element after the last element in the list.
See also begin().
|
get |
Returns the first element in the collection.
See also last(), operator[](), at(), and count().
|
get |
Returns the last element in the collection.
See also first(), operator[](), at(), and count().
|
getset |