Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QTextBlock.iterator Class Reference

The QTextBlock::iterator class provides an iterator for reading the contents of a QTextBlock. More...

Inheritance diagram for QtGui.QTextBlock.iterator:
Collaboration diagram for QtGui.QTextBlock.iterator:

Public Member Functions

 iterator ()
 
 
 iterator (QTextBlock.iterator o)
 
 
virtual void CreateProxy ()
 
new bool AtEnd ()
 
 
new QTextFragment Fragment ()
 
 
new void Dispose ()
 

Protected Member Functions

 iterator (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

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:

QTextBlock::iterator it;

for (it = currentBlock.begin(); !(it.atEnd()); ++it) {

QTextFragment currentFragment = it.fragment();

if (currentFragment.isValid())

processFragment(currentFragment);

}

See also QTextFragment.

Constructor & Destructor Documentation

QtGui.QTextBlock.iterator.iterator ( System.Type  dummy)
protected
QtGui.QTextBlock.iterator.iterator ( )

Constructs an iterator for this text block.

QtGui.QTextBlock.iterator.iterator ( QTextBlock.iterator  o)

Constructs an iterator for this text block.

Member Function Documentation

new bool QtGui.QTextBlock.iterator.AtEnd ( )

Returns true if the current item is the last item in the text block.

virtual void QtGui.QTextBlock.iterator.CreateProxy ( )
virtual
new void QtGui.QTextBlock.iterator.Dispose ( )
new QTextFragment QtGui.QTextBlock.iterator.Fragment ( )

Returns the text fragment the iterator currently points to.

Member Data Documentation

SmokeInvocation QtGui.QTextBlock.iterator.interceptor
protected

Property Documentation

virtual System.IntPtr QtGui.QTextBlock.iterator.SmokeObject
getset