|
Qyoto
4.0.7
Qyoto is a C# language binding for Qt
|
The QTextBlock::iterator class provides an iterator for reading the contents of a QTextBlock. More...


Public Member Functions | |
| iterator () | |
| More... | |
| iterator (QTextBlock.iterator o) | |
| More... | |
| virtual void | CreateProxy () |
| new void | Dispose () |
Protected Member Functions | |
| iterator (System.Type dummy) | |
Protected Attributes | |
| SmokeInvocation | interceptor |
Properties | |
| bool | AtEnd [get] |
| More... | |
| QTextFragment | Fragment [get] |
| More... | |
| virtual System.IntPtr | SmokeObject [get, set] |
The QTextBlock::iterator class provides an iterator for reading the contents of a QTextBlock.
A block consists of a sequence of text fragments. This class provides a way to iterate over these, and read their contents. It does not provide a way to modify the internal structure or contents of the block.
An iterator can be constructed and used to access the fragments within a text block in the following way:
for (it = currentBlock.begin(); !(it.atEnd()); ++it) {
QTextFragment currentFragment = it.fragment();
if (currentFragment.isValid())
processFragment(currentFragment);
}
See also QTextFragment.
|
protected |
| QtGui.QTextBlock.iterator.iterator | ( | ) |
Constructs an iterator for this text block.

| QtGui.QTextBlock.iterator.iterator | ( | QTextBlock.iterator | o | ) |
Copy constructor. Constructs a copy of the other iterator.

|
virtual |

| new void QtGui.QTextBlock.iterator.Dispose | ( | ) |
|
protected |
|
get |
Returns true if the current item is the last item in the text block.
|
get |
Returns the text fragment the iterator currently points to.
|
getset |