Qyoto  4.0.6
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtWebKit.QWebElementCollection Class Reference

The QWebElementCollection class represents a collection of web elements. More...

Inheritance diagram for QtWebKit.QWebElementCollection:
Collaboration diagram for QtWebKit.QWebElementCollection:

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]
 

Detailed Description

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) {

...

}

Constructor & Destructor Documentation

QtWebKit.QWebElementCollection.QWebElementCollection ( System.Type  dummy)
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.

Member Function Documentation

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 void QtWebKit.QWebElementCollection.CreateProxy ( )
virtual
new void QtWebKit.QWebElementCollection.Dispose ( )
static QWebElementCollection QtWebKit.QWebElementCollection.operator+ ( QWebElementCollection  one,
QWebElementCollection  other 
)
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.

Member Data Documentation

SmokeInvocation QtWebKit.QWebElementCollection.interceptor
protected

Property Documentation

QWebElementCollection.const_iterator QtWebKit.QWebElementCollection.ConstBegin
get

Returns an STL-style iterator pointing to the first element in the collection.

See also end().

QWebElementCollection.const_iterator QtWebKit.QWebElementCollection.ConstEnd
get

Returns an STL-style iterator pointing to the imaginary element after the last element in the list.

See also begin().

int QtWebKit.QWebElementCollection.Count
get

Returns the number of elements in the collection.

QWebElementCollection.const_iterator QtWebKit.QWebElementCollection.End
get

Returns an STL-style iterator pointing to the imaginary element after the last element in the list.

See also begin().

QWebElement QtWebKit.QWebElementCollection.First
get

Returns the first element in the collection.

See also last(), operator[](), at(), and count().

QWebElement QtWebKit.QWebElementCollection.Last
get

Returns the last element in the collection.

See also first(), operator[](), at(), and count().

virtual System.IntPtr QtWebKit.QWebElementCollection.SmokeObject
getset