Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 903

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:05:23 CEST 2007 -->
<TITLE>
QTextCursor
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.gui.QTextCursor class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QTextCursor";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.VerticalAlignment.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveMode.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QTextCursor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QTextCursor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.gui</FONT>
<BR>
Class QTextCursor</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A>
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.gui.QTextCursor</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A>, java.lang.Comparable</DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QTextCursor</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A><DT>implements java.lang.Comparable</DL>
</PRE>

<P>
<p>The <a href="QTextCursor.html#QTextCursor(com.trolltech.qt.gui.QTextDocument)"><tt>QTextCursor</tt></a> class offers an API to access and modify QTextDocuments.</p>
<p>Text cursors are objects that are used to access and modify the contents and underlying structure of text documents via a programming interface that mimics the behavior of a cursor in a text editor. <a href="QTextCursor.html#QTextCursor(com.trolltech.qt.gui.QTextDocument)"><tt>QTextCursor</tt></a> contains information about both the cursor's position within a <a href="QTextDocument.html"><tt>QTextDocument</tt></a> and any selection that it has made.</p>
<p><a href="QTextCursor.html#QTextCursor(com.trolltech.qt.gui.QTextDocument)"><tt>QTextCursor</tt></a> is modeled on the way a text cursor behaves in a text editor, providing a programmatic means of performing standard actions through the user interface. A document can be thought of as a single string of characters with the cursor's <a href="QTextCursor.html#position()"><tt>position</tt></a> being <i>between</i> any two characters (or at the very beginning or very end of the document). Documents can also contain tables, lists, images, and other objects in addition to text but, from the developer's point of view, the document can be treated as one long string. Some portions of that string can be considered to lie within particular blocks (e.g&#x2e; paragraphs), or within a table's cell, or a list's item, or other structural elements. When we refer to &quot;current character&quot; we mean the character immediately after the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> in the document; similarly the &quot;current block&quot; is the block that contains the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a>.</p>
<p>A <a href="QTextCursor.html#QTextCursor(com.trolltech.qt.gui.QTextDocument)"><tt>QTextCursor</tt></a> also has an <a href="QTextCursor.html#anchor()"><tt>anchor</tt></a> position. The text that is between the <a href="QTextCursor.html#anchor()"><tt>anchor</tt></a> and the <a href="QTextCursor.html#position()"><tt>position</tt></a> is the selection. If <a href="QTextCursor.html#anchor()"><tt>anchor</tt></a> == <a href="QTextCursor.html#position()"><tt>position</tt></a> there is no selection.</p>
<p>The cursor position can be changed programmatically using <a href="QTextCursor.html#setPosition(int, com.trolltech.qt.gui.QTextCursor.MoveMode)"><tt>setPosition</tt></a> and <a href="QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)"><tt>movePosition</tt></a>; the latter can also be used to select text. For selections see <a href="QTextCursor.html#selectionStart()"><tt>selectionStart</tt></a>, <a href="QTextCursor.html#selectionEnd()"><tt>selectionEnd</tt></a>, <a href="QTextCursor.html#hasSelection()"><tt>hasSelection</tt></a>, <a href="QTextCursor.html#clearSelection()"><tt>clearSelection</tt></a>, and <a href="QTextCursor.html#removeSelectedText()"><tt>removeSelectedText</tt></a>.</p>
<p>If the <a href="QTextCursor.html#position()"><tt>position</tt></a> is at the start of a block <a href="QTextCursor.html#atBlockStart()"><tt>atBlockStart</tt></a> returns true; and if it is at the end of a block <a href="QTextCursor.html#atBlockEnd()"><tt>atBlockEnd</tt></a> returns true. The format of the current character is returned by <a href="QTextCursor.html#charFormat()"><tt>charFormat</tt></a>, and the format of the current block is returned by <a href="QTextCursor.html#blockFormat()"><tt>blockFormat</tt></a>.</p>
<p>Formatting can be applied to the current text document using the <a href="QTextCursor.html#setCharFormat(com.trolltech.qt.gui.QTextCharFormat)"><tt>setCharFormat</tt></a>, <a href="QTextCursor.html#mergeCharFormat(com.trolltech.qt.gui.QTextCharFormat)"><tt>mergeCharFormat</tt></a>, <a href="QTextCursor.html#setBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)"><tt>setBlockFormat</tt></a> and <a href="QTextCursor.html#mergeBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)"><tt>mergeBlockFormat</tt></a> functions. The 'set' functions will replace the cursor's current character or block format, while the 'merge' functions add the given format properties to the cursor's current format. If the cursor has a selection the given format is applied to the current selection. Note that when only parts of a block is selected the block format is applied to the entire block. The text at the current character position can be turned into a list using <a href="QTextCursor.html#createList(com.trolltech.qt.gui.QTextListFormat.Style)"><tt>createList</tt></a>.</p>
<p>Deletions can be achieved using <a href="QTextCursor.html#deleteChar()"><tt>deleteChar</tt></a>, <a href="QTextCursor.html#deletePreviousChar()"><tt>deletePreviousChar</tt></a>, and <a href="QTextCursor.html#removeSelectedText()"><tt>removeSelectedText</tt></a>.</p>
<p>Text strings can be inserted into the document with the <a href="QTextCursor.html#insertText(java.lang.String, com.trolltech.qt.gui.QTextCharFormat)"><tt>insertText</tt></a> function, blocks (representing new paragraphs) can be inserted with <a href="QTextCursor.html#insertBlock()"><tt>insertBlock</tt></a>.</p>
<p>Existing fragments of text can be inserted with <a href="QTextCursor.html#insertFragment(com.trolltech.qt.gui.QTextDocumentFragment)"><tt>insertFragment</tt></a> but, if you want to insert pieces of text in various formats, it is usually still easier to use <a href="QTextCursor.html#insertText(java.lang.String, com.trolltech.qt.gui.QTextCharFormat)"><tt>insertText</tt></a> and supply a character format.</p>
<p>Various types of higher-level structure can also be inserted into the document with the cursor:</p>
<ul>
<li>Lists are ordered sequences of block elements that are decorated with bullet points or symbols. These are inserted in a specified format with <a href="QTextCursor.html#insertList(com.trolltech.qt.gui.QTextListFormat.Style)"><tt>insertList</tt></a>.</li>
<li>Tables are inserted with the <a href="QTextCursor.html#insertTable(int, int)"><tt>insertTable</tt></a> function, and can be given an optional format. These contain an array of cells that can be traversed using the cursor.</li>
<li>Inline images are inserted with <a href="QTextCursor.html#insertImage(com.trolltech.qt.gui.QTextImageFormat)"><tt>insertImage</tt></a>. The image to be used can be specified in an image format, or by name.</li>
<li>Frames are inserted by calling <a href="QTextCursor.html#insertFrame(com.trolltech.qt.gui.QTextFrameFormat)"><tt>insertFrame</tt></a> with a specified format.</li>
</ul>
<p>Actions can be grouped (i.e&#x2e; treated as a single action for undo/redo) using <a href="QTextCursor.html#beginEditBlock()"><tt>beginEditBlock</tt></a> and <a href="QTextCursor.html#endEditBlock()"><tt>endEditBlock</tt></a>.</p>
<p>Cursor movements are limited to valid cursor positions. In Latin writing this is usually after every character in the text. In some other writing systems cursor movements are limited to &quot;clusters&quot; (e.g&#x2e; a syllable in Devanagari, or a base letter plus diacritics). Functions such as <a href="QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)"><tt>movePosition</tt></a> and <a href="QTextCursor.html#deleteChar()"><tt>deleteChar</tt></a> limit cursor movement to these valid positions.</p>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="%2E%2E/richtext.html">Rich Text Processing</tt></a></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveMode.html" title="enum in com.trolltech.qt.gui">QTextCursor.MoveMode</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If the <a href="QTextCursor.html#anchor()"><tt>anchor</tt></a> is kept where it is and the <a href="QTextCursor.html#position()"><tt>position</tt></a> is moved, the text in between will be selected.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveOperation.html" title="enum in com.trolltech.qt.gui">QTextCursor.MoveOperation</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Press link for info on QTextCursor.MoveOperation</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.SelectionType.html" title="enum in com.trolltech.qt.gui">QTextCursor.SelectionType</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the types of selection that can be applied with the <a href="QTextCursor.html#select(com.trolltech.qt.gui.QTextCursor.SelectionType)"><tt>select</tt></a> function.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;

<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#QTextCursor()">QTextCursor</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a null cursor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#QTextCursor(com.trolltech.qt.gui.QTextBlock)">QTextCursor</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextBlock.html" title="class in com.trolltech.qt.gui">QTextBlock</A>&nbsp;block)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a cursor pointing to the beginning of the <tt>block</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#QTextCursor(com.trolltech.qt.gui.QTextCursor)">QTextCursor</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;cursor)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new cursor that is a copy of <tt>cursor</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#QTextCursor(com.trolltech.qt.gui.QTextDocument)">QTextCursor</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html" title="class in com.trolltech.qt.gui">QTextDocument</A>&nbsp;document)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a cursor pointing to the beginning of the <tt>document</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#QTextCursor(com.trolltech.qt.gui.QTextFrame)">QTextCursor</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html" title="class in com.trolltech.qt.gui">QTextFrame</A>&nbsp;frame)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a cursor pointing to the beginning of the <tt>frame</tt>.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#anchor()">anchor</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the anchor position; this is the same as <a href="QTextCursor.html#position()"><tt>position</tt></a> unless there is a selection in which case <a href="QTextCursor.html#position()"><tt>position</tt></a> marks one end of the selection and <a href="QTextCursor.html#anchor()"><tt>anchor</tt></a> marks the other end.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#atBlockEnd()">atBlockEnd</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the cursor is at the end of a block; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#atBlockStart()">atBlockStart</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the cursor is at the start of a block; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#atEnd()">atEnd</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the cursor is at the end of the document; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#atStart()">atStart</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the cursor is at the start of the document; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#beginEditBlock()">beginEditBlock</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicates the start of a block of editing operations on the document that should appear as a single operation from an undo/redo point of view.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextBlock.html" title="class in com.trolltech.qt.gui">QTextBlock</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#block()">block</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the block that contains the cursor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#blockCharFormat()">blockCharFormat</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the block character format of the block the cursor is in.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextBlockFormat.html" title="class in com.trolltech.qt.gui">QTextBlockFormat</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#blockFormat()">blockFormat</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the block format of the block the cursor is in.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#blockNumber()">blockNumber</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of the block the cursor is in.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#charFormat()">charFormat</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the format of the character immediately before the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#clearSelection()">clearSelection</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears the current selection by setting the anchor to the cursor position.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#columnNumber()">columnNumber</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the position of the cursor within its containing line.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#compareTo(java.lang.Object)">compareTo</A></B>(java.lang.Object&nbsp;other)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextList.html" title="class in com.trolltech.qt.gui">QTextList</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#createList(com.trolltech.qt.gui.QTextListFormat.Style)">createList</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextListFormat.Style.html" title="enum in com.trolltech.qt.gui">QTextListFormat.Style</A>&nbsp;style)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates and returns a new list with the given <tt>style</tt>, making the cursor's current paragraph the first list item.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextList.html" title="class in com.trolltech.qt.gui">QTextList</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#createList(com.trolltech.qt.gui.QTextListFormat)">createList</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextListFormat.html" title="class in com.trolltech.qt.gui">QTextListFormat</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates and returns a new list with the given <tt>format</tt>, and makes the current paragraph the cursor is in the first list item.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html" title="class in com.trolltech.qt.gui">QTextFrame</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#currentFrame()">currentFrame</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a pointer to the current frame.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextList.html" title="class in com.trolltech.qt.gui">QTextList</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#currentList()">currentList</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current list if the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> is inside a block that is part of a list; otherwise returns 0.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextTable.html" title="class in com.trolltech.qt.gui">QTextTable</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#currentTable()">currentTable</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a pointer to the current table if the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> is inside a block that is part of a table; otherwise returns 0.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#deleteChar()">deleteChar</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If there is no selected text, deletes the character <i>at</i> the current cursor position; otherwise deletes the selected text.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#deletePreviousChar()">deletePreviousChar</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If there is no selected text, deletes the character <i>before</i> the current cursor position; otherwise deletes the selected text.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#endEditBlock()">endEditBlock</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicates the end of a block of editing operations on the document that should appear as a single operation from an undo/redo point of view.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;other)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QTextCursor instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#hasComplexSelection()">hasComplexSelection</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the cursor contains a selection that is not simply a range from <a href="QTextCursor.html#selectionStart()"><tt>selectionStart</tt></a> to <a href="QTextCursor.html#selectionEnd()"><tt>selectionEnd</tt></a>; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#hasSelection()">hasSelection</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the cursor contains a selection; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#insertBlock()">insertBlock</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts a new empty block at the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> with the current <a href="QTextCursor.html#blockFormat()"><tt>blockFormat</tt></a> and <a href="QTextCursor.html#charFormat()"><tt>charFormat</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#insertBlock(com.trolltech.qt.gui.QTextBlockFormat)">insertBlock</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextBlockFormat.html" title="class in com.trolltech.qt.gui">QTextBlockFormat</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts a new empty block at the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> with block format <tt>format</tt> and the current <a href="QTextCursor.html#charFormat()"><tt>charFormat</tt></a> as block char format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#insertBlock(com.trolltech.qt.gui.QTextBlockFormat, com.trolltech.qt.gui.QTextCharFormat)">insertBlock</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextBlockFormat.html" title="class in com.trolltech.qt.gui">QTextBlockFormat</A>&nbsp;format,
            <A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A>&nbsp;charFormat)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts a new empty block at the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> with block format <tt>format</tt> and <tt>charFormat</tt> as block char format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#insertFragment(com.trolltech.qt.gui.QTextDocumentFragment)">insertFragment</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextDocumentFragment.html" title="class in com.trolltech.qt.gui">QTextDocumentFragment</A>&nbsp;fragment)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts the text <tt>fragment</tt> at the current <a href="QTextCursor.html#position()"><tt>position</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html" title="class in com.trolltech.qt.gui">QTextFrame</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#insertFrame(com.trolltech.qt.gui.QTextFrameFormat)">insertFrame</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextFrameFormat.html" title="class in com.trolltech.qt.gui">QTextFrameFormat</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts a frame with the given <tt>format</tt> at the current cursor <a href="QTextCursor.html#position()"><tt>position</tt></a>, moves the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> inside the frame, and returns the frame.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#insertHtml(java.lang.String)">insertHtml</A></B>(java.lang.String&nbsp;html)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts the text <tt>html</tt> at the current <a href="QTextCursor.html#position()"><tt>position</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#insertImage(com.trolltech.qt.gui.QTextImageFormat)">insertImage</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextImageFormat.html" title="class in com.trolltech.qt.gui">QTextImageFormat</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts the image defined by <tt>format</tt> at the current <a href="QTextCursor.html#position()"><tt>position</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#insertImage(com.trolltech.qt.gui.QTextImageFormat, com.trolltech.qt.gui.QTextFrameFormat.Position)">insertImage</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextImageFormat.html" title="class in com.trolltech.qt.gui">QTextImageFormat</A>&nbsp;format,
            <A HREF="../../../../com/trolltech/qt/gui/QTextFrameFormat.Position.html" title="enum in com.trolltech.qt.gui">QTextFrameFormat.Position</A>&nbsp;alignment)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts the image defined by the given <tt>format</tt> at the cursor's current position with the specified <tt>alignment</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#insertImage(java.lang.String)">insertImage</A></B>(java.lang.String&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convenience method for inserting the image with the given <tt>name</tt> at the current <a href="QTextCursor.html#position()"><tt>position</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextList.html" title="class in com.trolltech.qt.gui">QTextList</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#insertList(com.trolltech.qt.gui.QTextListFormat.Style)">insertList</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextListFormat.Style.html" title="enum in com.trolltech.qt.gui">QTextListFormat.Style</A>&nbsp;style)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts a new block at the current position and makes it the first list item of a newly created list with the given <tt>style</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextList.html" title="class in com.trolltech.qt.gui">QTextList</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#insertList(com.trolltech.qt.gui.QTextListFormat)">insertList</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextListFormat.html" title="class in com.trolltech.qt.gui">QTextListFormat</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts a new block at the current position and makes it the first list item of a newly created list with the given <tt>format</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextTable.html" title="class in com.trolltech.qt.gui">QTextTable</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#insertTable(int, int)">insertTable</A></B>(int&nbsp;rows,
            int&nbsp;cols)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new table with the given number of <tt>rows</tt> and <tt>cols</tt>, inserts it at the current cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> in the document, and returns the table object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextTable.html" title="class in com.trolltech.qt.gui">QTextTable</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#insertTable(int, int, com.trolltech.qt.gui.QTextTableFormat)">insertTable</A></B>(int&nbsp;rows,
            int&nbsp;cols,
            <A HREF="../../../../com/trolltech/qt/gui/QTextTableFormat.html" title="class in com.trolltech.qt.gui">QTextTableFormat</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new table with the given number of <tt>rows</tt> and <tt>cols</tt> in the specified <tt>format</tt>, inserts it at the current cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> in the document, and returns the table object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#insertText(java.lang.String)">insertText</A></B>(java.lang.String&nbsp;text)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts <tt>text</tt> at the current position, using the current character format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#insertText(java.lang.String, com.trolltech.qt.gui.QTextCharFormat)">insertText</A></B>(java.lang.String&nbsp;text,
           <A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts <tt>text</tt> at the current position with the given <tt>format</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#isCopyOf(com.trolltech.qt.gui.QTextCursor)">isCopyOf</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;other)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if this cursor and <tt>other</tt> are copies of each other, i.e&#x2e; one of them was created as a copy of the other and neither has moved since.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#isNull()">isNull</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the cursor is null; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#joinPreviousEditBlock()">joinPreviousEditBlock</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Like <a href="QTextCursor.html#beginEditBlock()"><tt>beginEditBlock</tt></a> indicates the start of a block of editing operations that should appear as a single operation for undo/redo.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#mergeBlockCharFormat(com.trolltech.qt.gui.QTextCharFormat)">mergeBlockCharFormat</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A>&nbsp;modifier)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Modifies the block char format of the current block (or all blocks that are contained in the selection) with the block format specified by <tt>modifier</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#mergeBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)">mergeBlockFormat</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextBlockFormat.html" title="class in com.trolltech.qt.gui">QTextBlockFormat</A>&nbsp;modifier)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Modifies the block format of the current block (or all blocks that are contained in the selection) with the block format specified by <tt>modifier</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#mergeCharFormat(com.trolltech.qt.gui.QTextCharFormat)">mergeCharFormat</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A>&nbsp;modifier)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Merges the cursor's current character format with the properties described by format <tt>modifier</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation)">movePosition</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveOperation.html" title="enum in com.trolltech.qt.gui">QTextCursor.MoveOperation</A>&nbsp;op)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)"><tt>movePosition</tt></a>(<tt>op</tt>, MoveAnchor, 1).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode)">movePosition</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveOperation.html" title="enum in com.trolltech.qt.gui">QTextCursor.MoveOperation</A>&nbsp;op,
             <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveMode.html" title="enum in com.trolltech.qt.gui">QTextCursor.MoveMode</A>&nbsp;arg__2)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)"><tt>movePosition</tt></a>(<tt>op</tt>, <tt>arg__2</tt>, 1).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)">movePosition</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveOperation.html" title="enum in com.trolltech.qt.gui">QTextCursor.MoveOperation</A>&nbsp;op,
             <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveMode.html" title="enum in com.trolltech.qt.gui">QTextCursor.MoveMode</A>&nbsp;arg__2,
             int&nbsp;n)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Moves the cursor by performing the given <tt>op</tt> <tt>n</tt> times, using the specified <tt>arg__2</tt>, and returns true if all operations were completed successfully; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#nativePointerArray(com.trolltech.qt.gui.QTextCursor[])">nativePointerArray</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>[]&nbsp;array)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns a QNativePointer that is pointing to the specified QTextCursor array.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#position()">position</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the absolute position of the cursor within the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#removeSelectedText()">removeSelectedText</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If there is a selection, its content is deleted; otherwise does nothing.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#select(com.trolltech.qt.gui.QTextCursor.SelectionType)">select</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.SelectionType.html" title="enum in com.trolltech.qt.gui">QTextCursor.SelectionType</A>&nbsp;selection)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Selects text in the document according to the given <tt>selection</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTableArea.html" title="class in com.trolltech.qt.gui">QTableArea</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#selectedTableCells()">selectedTableCells</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the selected table cells as a QTableArea.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#selectedText()">selectedText</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current selection's text (which may be empty).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextDocumentFragment.html" title="class in com.trolltech.qt.gui">QTextDocumentFragment</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#selection()">selection</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current selection (which may be empty) with all its formatting information.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#selectionEnd()">selectionEnd</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the end of the selection or <a href="QTextCursor.html#position()"><tt>position</tt></a> if the cursor doesn't have a selection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#selectionStart()">selectionStart</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the start of the selection or <a href="QTextCursor.html#position()"><tt>position</tt></a> if the cursor doesn't have a selection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#setBlockCharFormat(com.trolltech.qt.gui.QTextCharFormat)">setBlockCharFormat</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the block char format of the current block (or all blocks that are contained in the selection) to <tt>format</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#setBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)">setBlockFormat</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextBlockFormat.html" title="class in com.trolltech.qt.gui">QTextBlockFormat</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the block format of the current block (or all blocks that are contained in the selection) to <tt>format</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#setCharFormat(com.trolltech.qt.gui.QTextCharFormat)">setCharFormat</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the cursor's current character format to the given <tt>format</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#setPosition(int)">setPosition</A></B>(int&nbsp;pos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextCursor.html#setPosition(int, com.trolltech.qt.gui.QTextCursor.MoveMode)"><tt>setPosition</tt></a>(<tt>pos</tt>, MoveAnchor).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html#setPosition(int, com.trolltech.qt.gui.QTextCursor.MoveMode)">setPosition</A></B>(int&nbsp;pos,
            <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveMode.html" title="enum in com.trolltech.qt.gui">QTextCursor.MoveMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Moves the cursor to the absolute position in the document specified by <tt>pos</tt> using a <tt>MoveMode</tt> specified by <tt>mode</tt>.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#thread()">thread</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="QTextCursor(com.trolltech.qt.gui.QTextFrame)"><!-- --></A><H3>
QTextCursor</H3>
<PRE>
public <B>QTextCursor</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html" title="class in com.trolltech.qt.gui">QTextFrame</A>&nbsp;frame)</PRE>
<DL>
<DD><p>Constructs a cursor pointing to the beginning of the <tt>frame</tt>.</p>
<P>
</DL>
<HR>

<A NAME="QTextCursor(com.trolltech.qt.gui.QTextCursor)"><!-- --></A><H3>
QTextCursor</H3>
<PRE>
public <B>QTextCursor</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;cursor)</PRE>
<DL>
<DD><p>Constructs a new cursor that is a copy of <tt>cursor</tt>.</p>
<P>
</DL>
<HR>

<A NAME="QTextCursor()"><!-- --></A><H3>
QTextCursor</H3>
<PRE>
public <B>QTextCursor</B>()</PRE>
<DL>
<DD><p>Constructs a null cursor.</p>
<P>
</DL>
<HR>

<A NAME="QTextCursor(com.trolltech.qt.gui.QTextBlock)"><!-- --></A><H3>
QTextCursor</H3>
<PRE>
public <B>QTextCursor</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextBlock.html" title="class in com.trolltech.qt.gui">QTextBlock</A>&nbsp;block)</PRE>
<DL>
<DD><p>Constructs a cursor pointing to the beginning of the <tt>block</tt>.</p>
<P>
</DL>
<HR>

<A NAME="QTextCursor(com.trolltech.qt.gui.QTextDocument)"><!-- --></A><H3>
QTextCursor</H3>
<PRE>
public <B>QTextCursor</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html" title="class in com.trolltech.qt.gui">QTextDocument</A>&nbsp;document)</PRE>
<DL>
<DD><p>Constructs a cursor pointing to the beginning of the <tt>document</tt>.</p>
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="anchor()"><!-- --></A><H3>
anchor</H3>
<PRE>
public final int <B>anchor</B>()</PRE>
<DL>
<DD><p>Returns the anchor position; this is the same as <a href="QTextCursor.html#position()"><tt>position</tt></a> unless there is a selection in which case <a href="QTextCursor.html#position()"><tt>position</tt></a> marks one end of the selection and <a href="QTextCursor.html#anchor()"><tt>anchor</tt></a> marks the other end. Just like the cursor position, the anchor position is between characters.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#position()"><tt>position</tt></a>, 
<a href="QTextCursor.html#setPosition(int, com.trolltech.qt.gui.QTextCursor.MoveMode)"><tt>setPosition</tt></a>, 
<a href="QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)"><tt>movePosition</tt></a>, 
<a href="QTextCursor.html#selectionStart()"><tt>selectionStart</tt></a>, 
<a href="QTextCursor.html#selectionEnd()"><tt>selectionEnd</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="atBlockEnd()"><!-- --></A><H3>
atBlockEnd</H3>
<PRE>
public final boolean <B>atBlockEnd</B>()</PRE>
<DL>
<DD><p>Returns true if the cursor is at the end of a block; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#atBlockStart()"><tt>atBlockStart</tt></a>, 
<a href="QTextCursor.html#atEnd()"><tt>atEnd</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="atBlockStart()"><!-- --></A><H3>
atBlockStart</H3>
<PRE>
public final boolean <B>atBlockStart</B>()</PRE>
<DL>
<DD><p>Returns true if the cursor is at the start of a block; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#atBlockEnd()"><tt>atBlockEnd</tt></a>, 
<a href="QTextCursor.html#atStart()"><tt>atStart</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="atEnd()"><!-- --></A><H3>
atEnd</H3>
<PRE>
public final boolean <B>atEnd</B>()</PRE>
<DL>
<DD><p>Returns true if the cursor is at the end of the document; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#atStart()"><tt>atStart</tt></a>, 
<a href="QTextCursor.html#atBlockEnd()"><tt>atBlockEnd</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="atStart()"><!-- --></A><H3>
atStart</H3>
<PRE>
public final boolean <B>atStart</B>()</PRE>
<DL>
<DD><p>Returns true if the cursor is at the start of the document; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#atBlockStart()"><tt>atBlockStart</tt></a>, 
<a href="QTextCursor.html#atEnd()"><tt>atEnd</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="beginEditBlock()"><!-- --></A><H3>
beginEditBlock</H3>
<PRE>
public final void <B>beginEditBlock</B>()</PRE>
<DL>
<DD><p>Indicates the start of a block of editing operations on the document that should appear as a single operation from an undo/redo point of view.</p>
<p>For example:</p>
<pre>    QTextCursor cursor(textDocument);
    cursor.beginEditBlock();
    cursor.insertText(&quot;Hello&quot;);
    cursor.insertText(&quot;World&quot;);
    cursor.endEditBlock();

    textDocument-&gt;undo();</pre>
<p>The call to undo() will cause both insertions to be undone, causing both &quot;World&quot; and &quot;Hello&quot; to be removed.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#endEditBlock()"><tt>endEditBlock</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="block()"><!-- --></A><H3>
block</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextBlock.html" title="class in com.trolltech.qt.gui">QTextBlock</A> <B>block</B>()</PRE>
<DL>
<DD><p>Returns the block that contains the cursor.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="blockCharFormat()"><!-- --></A><H3>
blockCharFormat</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A> <B>blockCharFormat</B>()</PRE>
<DL>
<DD><p>Returns the block character format of the block the cursor is in.</p>
<p>The block char format is the format used when inserting text at the beginning of an empty block.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#setBlockCharFormat(com.trolltech.qt.gui.QTextCharFormat)"><tt>setBlockCharFormat</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="blockFormat()"><!-- --></A><H3>
blockFormat</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextBlockFormat.html" title="class in com.trolltech.qt.gui">QTextBlockFormat</A> <B>blockFormat</B>()</PRE>
<DL>
<DD><p>Returns the block format of the block the cursor is in.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#setBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)"><tt>setBlockFormat</tt></a>, 
<a href="QTextCursor.html#charFormat()"><tt>charFormat</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="blockNumber()"><!-- --></A><H3>
blockNumber</H3>
<PRE>
public final int <B>blockNumber</B>()</PRE>
<DL>
<DD><p>Returns the number of the block the cursor is in.</p>
<p>Note that this function only makes sense in documents without complex objects such as tables or frames.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="charFormat()"><!-- --></A><H3>
charFormat</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A> <B>charFormat</B>()</PRE>
<DL>
<DD><p>Returns the format of the character immediately before the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a>. If the cursor is positioned at the beginning of a text block that is not empty then the format of the character immediately after the cursor is returned.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#setCharFormat(com.trolltech.qt.gui.QTextCharFormat)"><tt>setCharFormat</tt></a>, 
<a href="QTextCursor.html#insertText(java.lang.String, com.trolltech.qt.gui.QTextCharFormat)"><tt>insertText</tt></a>, 
<a href="QTextCursor.html#blockFormat()"><tt>blockFormat</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="clearSelection()"><!-- --></A><H3>
clearSelection</H3>
<PRE>
public final void <B>clearSelection</B>()</PRE>
<DL>
<DD><p>Clears the current selection by setting the anchor to the cursor position.</p>
<p>Note that it does <b>not</b> delete the text of the selection.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#removeSelectedText()"><tt>removeSelectedText</tt></a>, 
<a href="QTextCursor.html#hasSelection()"><tt>hasSelection</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="columnNumber()"><!-- --></A><H3>
columnNumber</H3>
<PRE>
public final int <B>columnNumber</B>()</PRE>
<DL>
<DD><p>Returns the position of the cursor within its containing line.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="createList(com.trolltech.qt.gui.QTextListFormat)"><!-- --></A><H3>
createList</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextList.html" title="class in com.trolltech.qt.gui">QTextList</A> <B>createList</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextListFormat.html" title="class in com.trolltech.qt.gui">QTextListFormat</A>&nbsp;format)</PRE>
<DL>
<DD><p>Creates and returns a new list with the given <tt>format</tt>, and makes the current paragraph the cursor is in the first list item.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#insertList(com.trolltech.qt.gui.QTextListFormat.Style)"><tt>insertList</tt></a>, 
<a href="QTextCursor.html#currentList()"><tt>currentList</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="createList(com.trolltech.qt.gui.QTextListFormat.Style)"><!-- --></A><H3>
createList</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextList.html" title="class in com.trolltech.qt.gui">QTextList</A> <B>createList</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextListFormat.Style.html" title="enum in com.trolltech.qt.gui">QTextListFormat.Style</A>&nbsp;style)</PRE>
<DL>
<DD><p>Creates and returns a new list with the given <tt>style</tt>, making the cursor's current paragraph the first list item.</p>
<p>The style to be used is defined by the QTextListFormat::Style enum.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#insertList(com.trolltech.qt.gui.QTextListFormat.Style)"><tt>insertList</tt></a>, 
<a href="QTextCursor.html#currentList()"><tt>currentList</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="currentFrame()"><!-- --></A><H3>
currentFrame</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html" title="class in com.trolltech.qt.gui">QTextFrame</A> <B>currentFrame</B>()</PRE>
<DL>
<DD><p>Returns a pointer to the current frame. Returns 0 if the cursor is invalid.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#insertFrame(com.trolltech.qt.gui.QTextFrameFormat)"><tt>insertFrame</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="currentList()"><!-- --></A><H3>
currentList</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextList.html" title="class in com.trolltech.qt.gui">QTextList</A> <B>currentList</B>()</PRE>
<DL>
<DD><p>Returns the current list if the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> is inside a block that is part of a list; otherwise returns 0.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#insertList(com.trolltech.qt.gui.QTextListFormat.Style)"><tt>insertList</tt></a>, 
<a href="QTextCursor.html#createList(com.trolltech.qt.gui.QTextListFormat.Style)"><tt>createList</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="currentTable()"><!-- --></A><H3>
currentTable</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextTable.html" title="class in com.trolltech.qt.gui">QTextTable</A> <B>currentTable</B>()</PRE>
<DL>
<DD><p>Returns a pointer to the current table if the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> is inside a block that is part of a table; otherwise returns 0.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#insertTable(int, int)"><tt>insertTable</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="deleteChar()"><!-- --></A><H3>
deleteChar</H3>
<PRE>
public final void <B>deleteChar</B>()</PRE>
<DL>
<DD><p>If there is no selected text, deletes the character <i>at</i> the current cursor position; otherwise deletes the selected text.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#deletePreviousChar()"><tt>deletePreviousChar</tt></a>, 
<a href="QTextCursor.html#hasSelection()"><tt>hasSelection</tt></a>, 
<a href="QTextCursor.html#clearSelection()"><tt>clearSelection</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="deletePreviousChar()"><!-- --></A><H3>
deletePreviousChar</H3>
<PRE>
public final void <B>deletePreviousChar</B>()</PRE>
<DL>
<DD><p>If there is no selected text, deletes the character <i>before</i> the current cursor position; otherwise deletes the selected text.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#deleteChar()"><tt>deleteChar</tt></a>, 
<a href="QTextCursor.html#hasSelection()"><tt>hasSelection</tt></a>, 
<a href="QTextCursor.html#clearSelection()"><tt>clearSelection</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="endEditBlock()"><!-- --></A><H3>
endEditBlock</H3>
<PRE>
public final void <B>endEditBlock</B>()</PRE>
<DL>
<DD><p>Indicates the end of a block of editing operations on the document that should appear as a single operation from an undo/redo point of view.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#beginEditBlock()"><tt>beginEditBlock</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="hasComplexSelection()"><!-- --></A><H3>
hasComplexSelection</H3>
<PRE>
public final boolean <B>hasComplexSelection</B>()</PRE>
<DL>
<DD><p>Returns true if the cursor contains a selection that is not simply a range from <a href="QTextCursor.html#selectionStart()"><tt>selectionStart</tt></a> to <a href="QTextCursor.html#selectionEnd()"><tt>selectionEnd</tt></a>; otherwise returns false.</p>
<p>Complex selections are ones that span at least two cells in a table; their extent is specified by selectedTableCells().</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="hasSelection()"><!-- --></A><H3>
hasSelection</H3>
<PRE>
public final boolean <B>hasSelection</B>()</PRE>
<DL>
<DD><p>Returns true if the cursor contains a selection; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="insertBlock(com.trolltech.qt.gui.QTextBlockFormat)"><!-- --></A><H3>
insertBlock</H3>
<PRE>
public final void <B>insertBlock</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextBlockFormat.html" title="class in com.trolltech.qt.gui">QTextBlockFormat</A>&nbsp;format)</PRE>
<DL>
<DD><p>Inserts a new empty block at the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> with block format <tt>format</tt> and the current <a href="QTextCursor.html#charFormat()"><tt>charFormat</tt></a> as block char format.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#setBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)"><tt>setBlockFormat</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="insertBlock(com.trolltech.qt.gui.QTextBlockFormat, com.trolltech.qt.gui.QTextCharFormat)"><!-- --></A><H3>
insertBlock</H3>
<PRE>
public final void <B>insertBlock</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextBlockFormat.html" title="class in com.trolltech.qt.gui">QTextBlockFormat</A>&nbsp;format,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A>&nbsp;charFormat)</PRE>
<DL>
<DD><p>Inserts a new empty block at the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> with block format <tt>format</tt> and <tt>charFormat</tt> as block char format.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#setBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)"><tt>setBlockFormat</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="insertBlock()"><!-- --></A><H3>
insertBlock</H3>
<PRE>
public final void <B>insertBlock</B>()</PRE>
<DL>
<DD><p>Inserts a new empty block at the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> with the current <a href="QTextCursor.html#blockFormat()"><tt>blockFormat</tt></a> and <a href="QTextCursor.html#charFormat()"><tt>charFormat</tt></a>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#setBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)"><tt>setBlockFormat</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="insertFragment(com.trolltech.qt.gui.QTextDocumentFragment)"><!-- --></A><H3>
insertFragment</H3>
<PRE>
public final void <B>insertFragment</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextDocumentFragment.html" title="class in com.trolltech.qt.gui">QTextDocumentFragment</A>&nbsp;fragment)</PRE>
<DL>
<DD><p>Inserts the text <tt>fragment</tt> at the current <a href="QTextCursor.html#position()"><tt>position</tt></a>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="insertFrame(com.trolltech.qt.gui.QTextFrameFormat)"><!-- --></A><H3>
insertFrame</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html" title="class in com.trolltech.qt.gui">QTextFrame</A> <B>insertFrame</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextFrameFormat.html" title="class in com.trolltech.qt.gui">QTextFrameFormat</A>&nbsp;format)</PRE>
<DL>
<DD><p>Inserts a frame with the given <tt>format</tt> at the current cursor <a href="QTextCursor.html#position()"><tt>position</tt></a>, moves the cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> inside the frame, and returns the frame.</p>
<p>If the cursor holds a selection, the whole selection is moved inside the frame.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#hasSelection()"><tt>hasSelection</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="insertHtml(java.lang.String)"><!-- --></A><H3>
insertHtml</H3>
<PRE>
public final void <B>insertHtml</B>(java.lang.String&nbsp;html)</PRE>
<DL>
<DD><p>Inserts the text <tt>html</tt> at the current <a href="QTextCursor.html#position()"><tt>position</tt></a>. The text is interpreted as HTML.</p>
<p><b>Note:</b> When using this function with a style sheet, the style sheet will only apply to the current block in the document. In order to apply a style sheet throughout a document, use QTextDocument::setDefaultStyleSheet() instead.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="insertImage(com.trolltech.qt.gui.QTextImageFormat, com.trolltech.qt.gui.QTextFrameFormat.Position)"><!-- --></A><H3>
insertImage</H3>
<PRE>
public final void <B>insertImage</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextImageFormat.html" title="class in com.trolltech.qt.gui">QTextImageFormat</A>&nbsp;format,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextFrameFormat.Position.html" title="enum in com.trolltech.qt.gui">QTextFrameFormat.Position</A>&nbsp;alignment)</PRE>
<DL>
<DD><p>Inserts the image defined by the given <tt>format</tt> at the cursor's current position with the specified <tt>alignment</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#position()"><tt>position</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="insertImage(java.lang.String)"><!-- --></A><H3>
insertImage</H3>
<PRE>
public final void <B>insertImage</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD><p>Convenience method for inserting the image with the given <tt>name</tt> at the current <a href="QTextCursor.html#position()"><tt>position</tt></a>.</p>
<pre>    QImage img = ...
    textDocument-&gt;addResource(QTextDocument::ImageResource, QUrl(&quot;myimage&quot;), img);
    cursor.insertImage(&quot;myimage&quot;);</pre>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="insertImage(com.trolltech.qt.gui.QTextImageFormat)"><!-- --></A><H3>
insertImage</H3>
<PRE>
public final void <B>insertImage</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextImageFormat.html" title="class in com.trolltech.qt.gui">QTextImageFormat</A>&nbsp;format)</PRE>
<DL>
<DD><p>Inserts the image defined by <tt>format</tt> at the current <a href="QTextCursor.html#position()"><tt>position</tt></a>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="insertList(com.trolltech.qt.gui.QTextListFormat)"><!-- --></A><H3>
insertList</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextList.html" title="class in com.trolltech.qt.gui">QTextList</A> <B>insertList</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextListFormat.html" title="class in com.trolltech.qt.gui">QTextListFormat</A>&nbsp;format)</PRE>
<DL>
<DD><p>Inserts a new block at the current position and makes it the first list item of a newly created list with the given <tt>format</tt>. Returns the created list.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#currentList()"><tt>currentList</tt></a>, 
<a href="QTextCursor.html#createList(com.trolltech.qt.gui.QTextListFormat.Style)"><tt>createList</tt></a>, 
<a href="QTextCursor.html#insertBlock()"><tt>insertBlock</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="insertList(com.trolltech.qt.gui.QTextListFormat.Style)"><!-- --></A><H3>
insertList</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextList.html" title="class in com.trolltech.qt.gui">QTextList</A> <B>insertList</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextListFormat.Style.html" title="enum in com.trolltech.qt.gui">QTextListFormat.Style</A>&nbsp;style)</PRE>
<DL>
<DD><p>Inserts a new block at the current position and makes it the first list item of a newly created list with the given <tt>style</tt>. Returns the created list.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#currentList()"><tt>currentList</tt></a>, 
<a href="QTextCursor.html#createList(com.trolltech.qt.gui.QTextListFormat.Style)"><tt>createList</tt></a>, 
<a href="QTextCursor.html#insertBlock()"><tt>insertBlock</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="insertTable(int, int, com.trolltech.qt.gui.QTextTableFormat)"><!-- --></A><H3>
insertTable</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextTable.html" title="class in com.trolltech.qt.gui">QTextTable</A> <B>insertTable</B>(int&nbsp;rows,
                                    int&nbsp;cols,
                                    <A HREF="../../../../com/trolltech/qt/gui/QTextTableFormat.html" title="class in com.trolltech.qt.gui">QTextTableFormat</A>&nbsp;format)</PRE>
<DL>
<DD><p>Creates a new table with the given number of <tt>rows</tt> and <tt>cols</tt> in the specified <tt>format</tt>, inserts it at the current cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> in the document, and returns the table object. The cursor is moved to the beginning of the first cell.</p>
<p>There must be at least one row and one column in the table.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#currentTable()"><tt>currentTable</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="insertTable(int, int)"><!-- --></A><H3>
insertTable</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextTable.html" title="class in com.trolltech.qt.gui">QTextTable</A> <B>insertTable</B>(int&nbsp;rows,
                                    int&nbsp;cols)</PRE>
<DL>
<DD><p>Creates a new table with the given number of <tt>rows</tt> and <tt>cols</tt>, inserts it at the current cursor <a href="QTextCursor.html#position()"><tt>position</tt></a> in the document, and returns the table object. The cursor is moved to the beginning of the first cell.</p>
<p>There must be at least one row and one column in the table.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#currentTable()"><tt>currentTable</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="insertText(java.lang.String)"><!-- --></A><H3>
insertText</H3>
<PRE>
public final void <B>insertText</B>(java.lang.String&nbsp;text)</PRE>
<DL>
<DD><p>Inserts <tt>text</tt> at the current position, using the current character format.</p>
<p>If there is a selection, the selection is deleted and replaced by <tt>text</tt>, for example:</p>
<pre>    cursor.clearSelection();
    cursor.movePosition(QTextCursor::NextWord, QTextCursor::KeepAnchor);
    cursor.insertText(&quot;Hello World&quot;);</pre>
<p>This clears any existing selection, selects the word at the cursor (i.e&#x2e; from <a href="QTextCursor.html#position()"><tt>position</tt></a> forward), and replaces the selection with the phrase &quot;Hello World&quot;.</p>
<p>Any ASCII linefeed characters (\n) in the inserted text are transformed into unicode block separators, corresponding to <a href="QTextCursor.html#insertBlock()"><tt>insertBlock</tt></a> calls.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#charFormat()"><tt>charFormat</tt></a>, 
<a href="QTextCursor.html#hasSelection()"><tt>hasSelection</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="insertText(java.lang.String, com.trolltech.qt.gui.QTextCharFormat)"><!-- --></A><H3>
insertText</H3>
<PRE>
public final void <B>insertText</B>(java.lang.String&nbsp;text,
                             <A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A>&nbsp;format)</PRE>
<DL>
<DD><p>Inserts <tt>text</tt> at the current position with the given <tt>format</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="isCopyOf(com.trolltech.qt.gui.QTextCursor)"><!-- --></A><H3>
isCopyOf</H3>
<PRE>
public final boolean <B>isCopyOf</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;other)</PRE>
<DL>
<DD><p>Returns true if this cursor and <tt>other</tt> are copies of each other, i.e&#x2e; one of them was created as a copy of the other and neither has moved since. This is much stricter than equality.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><tt>operator=</tt>, 
<tt>operator==</tt></DL>
</DD>
</DL>
<HR>

<A NAME="isNull()"><!-- --></A><H3>
isNull</H3>
<PRE>
public final boolean <B>isNull</B>()</PRE>
<DL>
<DD><p>Returns true if the cursor is null; otherwise returns false. A null cursor is created by the default constructor.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="joinPreviousEditBlock()"><!-- --></A><H3>
joinPreviousEditBlock</H3>
<PRE>
public final void <B>joinPreviousEditBlock</B>()</PRE>
<DL>
<DD><p>Like <a href="QTextCursor.html#beginEditBlock()"><tt>beginEditBlock</tt></a> indicates the start of a block of editing operations that should appear as a single operation for undo/redo. However unlike <a href="QTextCursor.html#beginEditBlock()"><tt>beginEditBlock</tt></a> it does not start a new block but reverses the previous call to <a href="QTextCursor.html#endEditBlock()"><tt>endEditBlock</tt></a> and therefore makes following operations part of the previous edit block created.</p>
<p>For example:</p>
<pre>    QTextCursor cursor(textDocument);
    cursor.beginEditBlock();
    cursor.insertText(&quot;Hello&quot;);
    cursor.insertText(&quot;World&quot;);
    cursor.endEditBlock();

    ...

    cursor.joinPreviousEditBlock();
    cursor.insertText(&quot;Hey&quot;);
    cursor.endEditBlock();

    textDocument-&gt;undo();</pre>
<p>The call to undo() will cause all three insertions to be undone.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#beginEditBlock()"><tt>beginEditBlock</tt></a>, 
<a href="QTextCursor.html#endEditBlock()"><tt>endEditBlock</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="mergeBlockCharFormat(com.trolltech.qt.gui.QTextCharFormat)"><!-- --></A><H3>
mergeBlockCharFormat</H3>
<PRE>
public final void <B>mergeBlockCharFormat</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A>&nbsp;modifier)</PRE>
<DL>
<DD><p>Modifies the block char format of the current block (or all blocks that are contained in the selection) with the block format specified by <tt>modifier</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#setBlockCharFormat(com.trolltech.qt.gui.QTextCharFormat)"><tt>setBlockCharFormat</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="mergeBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)"><!-- --></A><H3>
mergeBlockFormat</H3>
<PRE>
public final void <B>mergeBlockFormat</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextBlockFormat.html" title="class in com.trolltech.qt.gui">QTextBlockFormat</A>&nbsp;modifier)</PRE>
<DL>
<DD><p>Modifies the block format of the current block (or all blocks that are contained in the selection) with the block format specified by <tt>modifier</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#setBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)"><tt>setBlockFormat</tt></a>, 
<a href="QTextCursor.html#blockFormat()"><tt>blockFormat</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="mergeCharFormat(com.trolltech.qt.gui.QTextCharFormat)"><!-- --></A><H3>
mergeCharFormat</H3>
<PRE>
public final void <B>mergeCharFormat</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A>&nbsp;modifier)</PRE>
<DL>
<DD><p>Merges the cursor's current character format with the properties described by format <tt>modifier</tt>. If the cursor has a selection, this function applies all the properties set in <tt>modifier</tt> to all the character formats that are part of the selection.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#hasSelection()"><tt>hasSelection</tt></a>, 
<a href="QTextCursor.html#setCharFormat(com.trolltech.qt.gui.QTextCharFormat)"><tt>setCharFormat</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode)"><!-- --></A><H3>
movePosition</H3>
<PRE>
public final boolean <B>movePosition</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveOperation.html" title="enum in com.trolltech.qt.gui">QTextCursor.MoveOperation</A>&nbsp;op,
                                  <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveMode.html" title="enum in com.trolltech.qt.gui">QTextCursor.MoveMode</A>&nbsp;arg__2)</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)"><tt>movePosition</tt></a>(<tt>op</tt>, <tt>arg__2</tt>, 1).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation)"><!-- --></A><H3>
movePosition</H3>
<PRE>
public final boolean <B>movePosition</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveOperation.html" title="enum in com.trolltech.qt.gui">QTextCursor.MoveOperation</A>&nbsp;op)</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)"><tt>movePosition</tt></a>(<tt>op</tt>, MoveAnchor, 1).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)"><!-- --></A><H3>
movePosition</H3>
<PRE>
public final boolean <B>movePosition</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveOperation.html" title="enum in com.trolltech.qt.gui">QTextCursor.MoveOperation</A>&nbsp;op,
                                  <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveMode.html" title="enum in com.trolltech.qt.gui">QTextCursor.MoveMode</A>&nbsp;arg__2,
                                  int&nbsp;n)</PRE>
<DL>
<DD><p>Moves the cursor by performing the given <tt>op</tt> <tt>n</tt> times, using the specified <tt>arg__2</tt>, and returns true if all operations were completed successfully; otherwise returns false.</p>
<p>For example, if this function is repeatedly used to seek to the end of the next word, it will eventually fail when the end of the document is reached.</p>
<p>By default, the move operation is performed once (<tt>n</tt> = 1).</p>
<p>If <tt>arg__2</tt> is <tt>KeepAnchor</tt>, the cursor selects the text it moves over. This is the same effect that the user achieves when they hold down the Shift key and move the cursor with the cursor keys.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="position()"><!-- --></A><H3>
position</H3>
<PRE>
public final int <B>position</B>()</PRE>
<DL>
<DD><p>Returns the absolute position of the cursor within the document. The cursor is positioned between characters.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#setPosition(int, com.trolltech.qt.gui.QTextCursor.MoveMode)"><tt>setPosition</tt></a>, 
<a href="QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)"><tt>movePosition</tt></a>, 
<a href="QTextCursor.html#anchor()"><tt>anchor</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="removeSelectedText()"><!-- --></A><H3>
removeSelectedText</H3>
<PRE>
public final void <B>removeSelectedText</B>()</PRE>
<DL>
<DD><p>If there is a selection, its content is deleted; otherwise does nothing.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#hasSelection()"><tt>hasSelection</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="select(com.trolltech.qt.gui.QTextCursor.SelectionType)"><!-- --></A><H3>
select</H3>
<PRE>
public final void <B>select</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.SelectionType.html" title="enum in com.trolltech.qt.gui">QTextCursor.SelectionType</A>&nbsp;selection)</PRE>
<DL>
<DD><p>Selects text in the document according to the given <tt>selection</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="selectedText()"><!-- --></A><H3>
selectedText</H3>
<PRE>
public final java.lang.String <B>selectedText</B>()</PRE>
<DL>
<DD><p>Returns the current selection's text (which may be empty). This only returns the text, with no rich text formatting information. If you want a document fragment (i.e&#x2e; formatted rich text) use <a href="QTextCursor.html#selection()"><tt>selection</tt></a> instead.</p>
<p><b>Note:</b> If the selection obtained from an editor spans a line break, the text will contain a Unicode U+2029 paragraph separator character instead of a newline <tt>\n</tt> character. Use QString::replace() to replace these characters with newlines.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="selection()"><!-- --></A><H3>
selection</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextDocumentFragment.html" title="class in com.trolltech.qt.gui">QTextDocumentFragment</A> <B>selection</B>()</PRE>
<DL>
<DD><p>Returns the current selection (which may be empty) with all its formatting information. If you just want the selected text (i.e&#x2e; plain text) use <a href="QTextCursor.html#selectedText()"><tt>selectedText</tt></a> instead.</p>
<p><b>Note:</b> Unlike QTextDocumentFragment::toPlainText(), <a href="QTextCursor.html#selectedText()"><tt>selectedText</tt></a> may include special unicode characters such as QChar::ParagraphSeparator.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QTextDocumentFragment::toPlainText</tt></DL>
</DD>
</DL>
<HR>

<A NAME="selectionEnd()"><!-- --></A><H3>
selectionEnd</H3>
<PRE>
public final int <B>selectionEnd</B>()</PRE>
<DL>
<DD><p>Returns the end of the selection or <a href="QTextCursor.html#position()"><tt>position</tt></a> if the cursor doesn't have a selection.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#selectionStart()"><tt>selectionStart</tt></a>, 
<a href="QTextCursor.html#position()"><tt>position</tt></a>, 
<a href="QTextCursor.html#anchor()"><tt>anchor</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="selectionStart()"><!-- --></A><H3>
selectionStart</H3>
<PRE>
public final int <B>selectionStart</B>()</PRE>
<DL>
<DD><p>Returns the start of the selection or <a href="QTextCursor.html#position()"><tt>position</tt></a> if the cursor doesn't have a selection.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#selectionEnd()"><tt>selectionEnd</tt></a>, 
<a href="QTextCursor.html#position()"><tt>position</tt></a>, 
<a href="QTextCursor.html#anchor()"><tt>anchor</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setBlockCharFormat(com.trolltech.qt.gui.QTextCharFormat)"><!-- --></A><H3>
setBlockCharFormat</H3>
<PRE>
public final void <B>setBlockCharFormat</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A>&nbsp;format)</PRE>
<DL>
<DD><p>Sets the block char format of the current block (or all blocks that are contained in the selection) to <tt>format</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#blockCharFormat()"><tt>blockCharFormat</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)"><!-- --></A><H3>
setBlockFormat</H3>
<PRE>
public final void <B>setBlockFormat</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextBlockFormat.html" title="class in com.trolltech.qt.gui">QTextBlockFormat</A>&nbsp;format)</PRE>
<DL>
<DD><p>Sets the block format of the current block (or all blocks that are contained in the selection) to <tt>format</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#blockFormat()"><tt>blockFormat</tt></a>, 
<a href="QTextCursor.html#mergeBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)"><tt>mergeBlockFormat</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setCharFormat(com.trolltech.qt.gui.QTextCharFormat)"><!-- --></A><H3>
setCharFormat</H3>
<PRE>
public final void <B>setCharFormat</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A>&nbsp;format)</PRE>
<DL>
<DD><p>Sets the cursor's current character format to the given <tt>format</tt>. If the cursor has a selection, the given <tt>format</tt> is applied to the current selection.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#charFormat()"><tt>charFormat</tt></a>, 
<a href="QTextCursor.html#hasSelection()"><tt>hasSelection</tt></a>, 
<a href="QTextCursor.html#mergeCharFormat(com.trolltech.qt.gui.QTextCharFormat)"><tt>mergeCharFormat</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setPosition(int)"><!-- --></A><H3>
setPosition</H3>
<PRE>
public final void <B>setPosition</B>(int&nbsp;pos)</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextCursor.html#setPosition(int, com.trolltech.qt.gui.QTextCursor.MoveMode)"><tt>setPosition</tt></a>(<tt>pos</tt>, MoveAnchor).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setPosition(int, com.trolltech.qt.gui.QTextCursor.MoveMode)"><!-- --></A><H3>
setPosition</H3>
<PRE>
public final void <B>setPosition</B>(int&nbsp;pos,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveMode.html" title="enum in com.trolltech.qt.gui">QTextCursor.MoveMode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Moves the cursor to the absolute position in the document specified by <tt>pos</tt> using a <tt>MoveMode</tt> specified by <tt>mode</tt>. The cursor is positioned between characters.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html#position()"><tt>position</tt></a>, 
<a href="QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)"><tt>movePosition</tt></a>, 
<a href="QTextCursor.html#anchor()"><tt>anchor</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QTextCursor instance pointed to by nativePointer
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<HR>

<A NAME="nativePointerArray(com.trolltech.qt.gui.QTextCursor[])"><!-- --></A><H3>
nativePointerArray</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> <B>nativePointerArray</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>[]&nbsp;array)</PRE>
<DL>
<DD>This function returns a QNativePointer that is pointing to the specified QTextCursor array.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>array</CODE> - the array that the returned pointer will point to.
<DT><B>Returns:</B><DD>a QNativePointer that is pointing to the specified array.</DL>
</DD>
</DL>
<HR>

<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(java.lang.Object&nbsp;other)</PRE>
<DL>
<DD>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="compareTo(java.lang.Object)"><!-- --></A><H3>
compareTo</H3>
<PRE>
public int <B>compareTo</B>(java.lang.Object&nbsp;other)</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>compareTo</CODE> in interface <CODE>java.lang.Comparable</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="selectedTableCells()"><!-- --></A><H3>
selectedTableCells</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTableArea.html" title="class in com.trolltech.qt.gui">QTableArea</A> <B>selectedTableCells</B>()</PRE>
<DL>
<DD>Returns the selected table cells as a QTableArea.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.VerticalAlignment.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.MoveMode.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QTextCursor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QTextCursor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>