<!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:34 CEST 2007 --> <TITLE> QTextFormat </TITLE> <META NAME="keywords" CONTENT="com.trolltech.qt.gui.QTextFormat class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="QTextFormat"; } </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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/gui/QTextEdit.LineWrapMode.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/gui/QTextFormat.FormatType.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/QTextFormat.html" target="_top"><B>FRAMES</B></A> <A HREF="QTextFormat.html" target="_top"><B>NO FRAMES</B></A> <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: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 QTextFormat</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.QTextFormat</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></DD> </DL> <DL> <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../com/trolltech/qt/gui/QTextBlockFormat.html" title="class in com.trolltech.qt.gui">QTextBlockFormat</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextFrameFormat.html" title="class in com.trolltech.qt.gui">QTextFrameFormat</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextListFormat.html" title="class in com.trolltech.qt.gui">QTextListFormat</A></DD> </DL> <HR> <DL> <DT><PRE>public class <B>QTextFormat</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></DL> </PRE> <P> <p>The <a href="QTextFormat.html#QTextFormat(int)"><tt>QTextFormat</tt></a> class provides formatting information for a <a href="QTextDocument.html"><tt>QTextDocument</tt></a>.</p> <p>A <a href="QTextFormat.html#QTextFormat(int)"><tt>QTextFormat</tt></a> is a generic class used for describing the format of parts of a <a href="QTextDocument.html"><tt>QTextDocument</tt></a>. The derived classes <a href="QTextCharFormat.html"><tt>QTextCharFormat</tt></a>, <a href="QTextBlockFormat.html"><tt>QTextBlockFormat</tt></a>, <a href="QTextListFormat.html"><tt>QTextListFormat</tt></a>, and <a href="QTextTableFormat.html"><tt>QTextTableFormat</tt></a> are usually more useful, and describe the formatting that is applied to specific parts of the document.</p> <p>A format has a <tt>FormatType</tt> which specifies the kinds of thing it can format; e.g. a block of text, a list, a table, etc. A format also has various properties (some specific to particular format types), as described by the Property enum. Every property has a corresponding Property.</p> <p>The format type is given by <a href="QTextFormat.html#type()"><tt>type</tt></a>, and the format can be tested with <a href="QTextFormat.html#isCharFormat()"><tt>isCharFormat</tt></a>, <a href="QTextFormat.html#isBlockFormat()"><tt>isBlockFormat</tt></a>, <a href="QTextFormat.html#isListFormat()"><tt>isListFormat</tt></a>, <a href="QTextFormat.html#isTableFormat()"><tt>isTableFormat</tt></a>, <a href="QTextFormat.html#isFrameFormat()"><tt>isFrameFormat</tt></a>, and <a href="QTextFormat.html#isImageFormat()"><tt>isImageFormat</tt></a>. If the type is determined, it can be retrieved with <a href="QTextFormat.html#toCharFormat()"><tt>toCharFormat</tt></a>, <a href="QTextFormat.html#toBlockFormat()"><tt>toBlockFormat</tt></a>, <a href="QTextFormat.html#toListFormat()"><tt>toListFormat</tt></a>, <a href="QTextFormat.html#toTableFormat()"><tt>toTableFormat</tt></a>, <a href="QTextFormat.html#toFrameFormat()"><tt>toFrameFormat</tt></a>, and <a href="QTextFormat.html#toImageFormat()"><tt>toImageFormat</tt></a>.</p> <p>A format's properties can be set with the <a href="QTextFormat.html#setProperty(int, java.lang.Object)"><tt>setProperty</tt></a> functions, and retrieved with <a href="QTextFormat.html#boolProperty(int)"><tt>boolProperty</tt></a>, <a href="QTextFormat.html#intProperty(int)"><tt>intProperty</tt></a>, <a href="QTextFormat.html#doubleProperty(int)"><tt>doubleProperty</tt></a>, and <a href="QTextFormat.html#stringProperty(int)"><tt>stringProperty</tt></a> as appropriate. All the property IDs used in the format can be retrieved with allPropertyIds(). One format can be merged into another using <a href="QTextFormat.html#merge(com.trolltech.qt.gui.QTextFormat)"><tt>merge</tt></a>.</p> <p>A format's object index can be set with <a href="QTextFormat.html#setObjectIndex(int)"><tt>setObjectIndex</tt></a>, and retrieved with <a href="QTextFormat.html#objectIndex()"><tt>objectIndex</tt></a>. These methods can be used to associate the format with a <a href="QTextObject.html"><tt>QTextObject</tt></a>. It is used to represent lists, frames, and tables inside the document.</p> <P> <P> <DL> <DT><B>See Also:</B><DD><CODE>Processing Classes</tt></CODE></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 class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.FormatType.html" title="enum in com.trolltech.qt.gui">QTextFormat.FormatType</A></B></CODE> <BR> Press link for info on QTextFormat.FormatType</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.ObjectTypes.html" title="enum in com.trolltech.qt.gui">QTextFormat.ObjectTypes</A></B></CODE> <BR> Press link for info on QTextFormat.ObjectTypes</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.PageBreakFlag.html" title="enum in com.trolltech.qt.gui">QTextFormat.PageBreakFlag</A></B></CODE> <BR> Press link for info on QTextFormat.PageBreakFlag</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.PageBreakFlags.html" title="class in com.trolltech.qt.gui">QTextFormat.PageBreakFlags</A></B></CODE> <BR> This QFlag class provides flags for the int enum.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.Property.html" title="enum in com.trolltech.qt.gui">QTextFormat.Property</A></B></CODE> <BR> Press link for information on QTextFormat.Property.</TD> </TR> </TABLE> <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><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A><<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>></CODE></TD> </TR> </TABLE> <!-- ======== 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/QTextFormat.html#QTextFormat()">QTextFormat</A></B>()</CODE> <BR> Creates a new text format with an <tt>InvalidFormat</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#QTextFormat(int)">QTextFormat</A></B>(int type)</CODE> <BR> Creates a new text format of the given <tt>type</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#QTextFormat(com.trolltech.qt.gui.QTextFormat)">QTextFormat</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A> rhs)</CODE> <BR> Creates a new text format with the same attributes as the <tt>rhs</tt> text format.</TD> </TR> </TABLE> <!-- ========== 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> <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#background()">background</A></B>()</CODE> <BR> Returns the brush used to paint the document's background.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#boolProperty(int)">boolProperty</A></B>(int propertyId)</CODE> <BR> Returns the value of the property specified by <tt>propertyId</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#brushProperty(int)">brushProperty</A></B>(int propertyId)</CODE> <BR> Returns the value of the property given by <tt>propertyId</tt>; if the property isn't of QVariant::Brush type, Qt::NoBrush is returned instead.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#clearBackground()">clearBackground</A></B>()</CODE> <BR> Clears the brush used to paint the document's background.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#clearForeground()">clearForeground</A></B>()</CODE> <BR> Clears the brush used to paint the document's foreground.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#clearProperty(int)">clearProperty</A></B>(int propertyId)</CODE> <BR> Clears the value of the property given by <tt>propertyId</tt></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#colorProperty(int)">colorProperty</A></B>(int propertyId)</CODE> <BR> Returns the value of the property given by <tt>propertyId</tt>; if the property isn't of QVariant::Color type, an invalid color is returned instead.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#doubleProperty(int)">doubleProperty</A></B>(int propertyId)</CODE> <BR> Returns the value of the property specified by <tt>propertyId</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object other)</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#foreground()">foreground</A></B>()</CODE> <BR> Returns the brush used to render foreground details, such as text, frame outlines, and table borders.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> nativePointer)</CODE> <BR> This function returns the QTextFormat instance pointed to by nativePointer</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#hasProperty(int)">hasProperty</A></B>(int propertyId)</CODE> <BR> Returns true if the text format has a property with the given <tt>propertyId</tt>; otherwise returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#intProperty(int)">intProperty</A></B>(int propertyId)</CODE> <BR> Returns the value of the property specified by <tt>propertyId</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#isBlockFormat()">isBlockFormat</A></B>()</CODE> <BR> Returns true if this text format is a <tt>BlockFormat</tt>; otherwise returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#isCharFormat()">isCharFormat</A></B>()</CODE> <BR> Returns true if this text format is a <tt>CharFormat</tt>; otherwise returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#isFrameFormat()">isFrameFormat</A></B>()</CODE> <BR> Returns true if this text format is a <tt>FrameFormat</tt>; otherwise returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#isImageFormat()">isImageFormat</A></B>()</CODE> <BR> Returns true if this text format is an image format; otherwise returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#isListFormat()">isListFormat</A></B>()</CODE> <BR> Returns true if this text format is a <tt>ListFormat</tt>; otherwise returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#isTableFormat()">isTableFormat</A></B>()</CODE> <BR> Returns true if this text format is a <tt>TableFormat</tt>; otherwise returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#isValid()">isValid</A></B>()</CODE> <BR> Returns true if the format is valid (i.e. is not <a href="QTextFormat.html#FormatType-enum"><tt>InvalidFormat</tt></a>); otherwise returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/core/Qt.LayoutDirection.html" title="enum in com.trolltech.qt.core">Qt.LayoutDirection</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#layoutDirection()">layoutDirection</A></B>()</CODE> <BR> Returns the document's layout direction.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QTextLength.html" title="class in com.trolltech.qt.gui">QTextLength</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#lengthProperty(int)">lengthProperty</A></B>(int propertyId)</CODE> <BR> Returns the value of the property given by <tt>propertyId</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.util.List<<A HREF="../../../../com/trolltech/qt/gui/QTextLength.html" title="class in com.trolltech.qt.gui">QTextLength</A>></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#lengthVectorProperty(int)">lengthVectorProperty</A></B>(int propertyId)</CODE> <BR> Returns the value of the property given by <tt>propertyId</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#merge(com.trolltech.qt.gui.QTextFormat)">merge</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A> other)</CODE> <BR> Merges the <tt>other</tt> format with this format; where there are conflicts the <tt>other</tt> format takes precedence.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <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/QTextFormat.html#nativePointerArray(com.trolltech.qt.gui.QTextFormat[])">nativePointerArray</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A>[] array)</CODE> <BR> This function returns a QNativePointer that is pointing to the specified QTextFormat array.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#objectIndex()">objectIndex</A></B>()</CODE> <BR> Returns the index of the format object, or -1 if the format object is invalid.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#objectType()">objectType</A></B>()</CODE> <BR> Returns the text format's object type.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QPen.html" title="class in com.trolltech.qt.gui">QPen</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#penProperty(int)">penProperty</A></B>(int propertyId)</CODE> <BR> Returns the value of the property given by <tt>propertyId</tt>; if the property isn't of QVariant::Pen type, Qt::NoPen is returned instead.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.util.SortedMap<java.lang.Integer,java.lang.Object></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#properties()">properties</A></B>()</CODE> <BR> Returns a map with all properties of this text format.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.Object</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#property(int)">property</A></B>(int propertyId)</CODE> <BR> Returns the property specified by the given <tt>propertyId</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#propertyCount()">propertyCount</A></B>()</CODE> <BR> Returns the number of properties stored in the format.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#readFrom(com.trolltech.qt.core.QDataStream)">readFrom</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A> arg__1)</CODE> <BR> Reads a QTextFormat from arg__1.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#setBackground(com.trolltech.qt.gui.QBrush)">setBackground</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> brush)</CODE> <BR> Sets the brush use to paint the document's background to the <tt>brush</tt> specified.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#setForeground(com.trolltech.qt.gui.QBrush)">setForeground</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> brush)</CODE> <BR> Sets the foreground brush to the specified <tt>brush</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#setLayoutDirection(com.trolltech.qt.core.Qt.LayoutDirection)">setLayoutDirection</A></B>(<A HREF="../../../../com/trolltech/qt/core/Qt.LayoutDirection.html" title="enum in com.trolltech.qt.core">Qt.LayoutDirection</A> direction)</CODE> <BR> Sets the document's layout direction to the specified <tt>direction</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#setObjectIndex(int)">setObjectIndex</A></B>(int object)</CODE> <BR> Sets the format object's object <tt>object</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#setObjectType(int)">setObjectType</A></B>(int type)</CODE> <BR> Sets the text format's object <tt>type</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#setProperty(int, java.util.List)">setProperty</A></B>(int propertyId, java.util.List<<A HREF="../../../../com/trolltech/qt/gui/QTextLength.html" title="class in com.trolltech.qt.gui">QTextLength</A>> lengths)</CODE> <BR> Sets the value of the property given by <tt>propertyId</tt> to <tt>lengths</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#setProperty(int, java.lang.Object)">setProperty</A></B>(int propertyId, java.lang.Object value)</CODE> <BR> Sets the property specified by the <tt>propertyId</tt> to the given <tt>value</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#stringProperty(int)">stringProperty</A></B>(int propertyId)</CODE> <BR> Returns the value of the property given by <tt>propertyId</tt>; if the property isn't of QVariant::String type, an empty string is returned instead.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <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/QTextFormat.html#toBlockFormat()">toBlockFormat</A></B>()</CODE> <BR> Returns this format as a block format.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <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/QTextFormat.html#toCharFormat()">toCharFormat</A></B>()</CODE> <BR> Returns this format as a character format.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QTextFrameFormat.html" title="class in com.trolltech.qt.gui">QTextFrameFormat</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#toFrameFormat()">toFrameFormat</A></B>()</CODE> <BR> Returns this format as a frame format.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QTextImageFormat.html" title="class in com.trolltech.qt.gui">QTextImageFormat</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#toImageFormat()">toImageFormat</A></B>()</CODE> <BR> Returns this format as an image format.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QTextListFormat.html" title="class in com.trolltech.qt.gui">QTextListFormat</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#toListFormat()">toListFormat</A></B>()</CODE> <BR> Returns this format as a list format.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QTextTableFormat.html" title="class in com.trolltech.qt.gui">QTextTableFormat</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#toTableFormat()">toTableFormat</A></B>()</CODE> <BR> Returns this format as a table format.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#type()">type</A></B>()</CODE> <BR> Returns the type of this format.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html#writeTo(com.trolltech.qt.core.QDataStream)">writeTo</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A> arg__1)</CODE> <BR> Writes thisQTextFormat to arg__1.</TD> </TR> </TABLE> <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> <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> <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> <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> <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="QTextFormat(com.trolltech.qt.gui.QTextFormat)"><!-- --></A><H3> QTextFormat</H3> <PRE> public <B>QTextFormat</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A> rhs)</PRE> <DL> <DD><p>Creates a new text format with the same attributes as the <tt>rhs</tt> text format.</p> <P> </DL> <HR> <A NAME="QTextFormat()"><!-- --></A><H3> QTextFormat</H3> <PRE> public <B>QTextFormat</B>()</PRE> <DL> <DD><p>Creates a new text format with an <tt>InvalidFormat</tt>.</p> <P> <DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#FormatType-enum"><tt>FormatType</tt></a></DL> </DL> <HR> <A NAME="QTextFormat(int)"><!-- --></A><H3> QTextFormat</H3> <PRE> public <B>QTextFormat</B>(int type)</PRE> <DL> <DD><p>Creates a new text format of the given <tt>type</tt>.</p> <P> <DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#FormatType-enum"><tt>FormatType</tt></a></DL> </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="background()"><!-- --></A><H3> background</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>background</B>()</PRE> <DL> <DD><p>Returns the brush used to paint the document's background.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#setBackground(com.trolltech.qt.gui.QBrush)"><tt>setBackground</tt></a>, <a href="QTextFormat.html#clearBackground()"><tt>clearBackground</tt></a>, <a href="QTextFormat.html#foreground()"><tt>foreground</tt></a></DL> </DD> </DL> <HR> <A NAME="boolProperty(int)"><!-- --></A><H3> boolProperty</H3> <PRE> public final boolean <B>boolProperty</B>(int propertyId)</PRE> <DL> <DD><p>Returns the value of the property specified by <tt>propertyId</tt>. If the property isn't of QTextFormat::Bool type, false is returned instead.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#setProperty(int, java.lang.Object)"><tt>setProperty</tt></a>, <a href="QTextFormat.html#intProperty(int)"><tt>intProperty</tt></a>, <a href="QTextFormat.html#doubleProperty(int)"><tt>doubleProperty</tt></a>, <a href="QTextFormat.html#stringProperty(int)"><tt>stringProperty</tt></a>, <a href="QTextFormat.html#colorProperty(int)"><tt>colorProperty</tt></a>, <a href="QTextFormat.html#lengthProperty(int)"><tt>lengthProperty</tt></a>, <a href="QTextFormat.html#lengthVectorProperty(int)"><tt>lengthVectorProperty</tt></a>, <a href="QTextFormat.html#Property-enum">Property</tt></a></DL> </DD> </DL> <HR> <A NAME="brushProperty(int)"><!-- --></A><H3> brushProperty</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>brushProperty</B>(int propertyId)</PRE> <DL> <DD><p>Returns the value of the property given by <tt>propertyId</tt>; if the property isn't of QVariant::Brush type, Qt::NoBrush is returned instead.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#setProperty(int, java.lang.Object)"><tt>setProperty</tt></a>, <a href="QTextFormat.html#boolProperty(int)"><tt>boolProperty</tt></a>, <a href="QTextFormat.html#intProperty(int)"><tt>intProperty</tt></a>, <a href="QTextFormat.html#doubleProperty(int)"><tt>doubleProperty</tt></a>, <a href="QTextFormat.html#stringProperty(int)"><tt>stringProperty</tt></a>, <a href="QTextFormat.html#lengthProperty(int)"><tt>lengthProperty</tt></a>, <a href="QTextFormat.html#lengthVectorProperty(int)"><tt>lengthVectorProperty</tt></a>, <a href="QTextFormat.html#Property-enum">Property</tt></a></DL> </DD> </DL> <HR> <A NAME="clearBackground()"><!-- --></A><H3> clearBackground</H3> <PRE> public final void <B>clearBackground</B>()</PRE> <DL> <DD><p>Clears the brush used to paint the document's background. The default brush will be used.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#background()"><tt>background</tt></a>, <a href="QTextFormat.html#setBackground(com.trolltech.qt.gui.QBrush)"><tt>setBackground</tt></a>, <a href="QTextFormat.html#clearForeground()"><tt>clearForeground</tt></a></DL> </DD> </DL> <HR> <A NAME="clearForeground()"><!-- --></A><H3> clearForeground</H3> <PRE> public final void <B>clearForeground</B>()</PRE> <DL> <DD><p>Clears the brush used to paint the document's foreground. The default brush will be used.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#foreground()"><tt>foreground</tt></a>, <a href="QTextFormat.html#setForeground(com.trolltech.qt.gui.QBrush)"><tt>setForeground</tt></a>, <a href="QTextFormat.html#clearBackground()"><tt>clearBackground</tt></a></DL> </DD> </DL> <HR> <A NAME="clearProperty(int)"><!-- --></A><H3> clearProperty</H3> <PRE> public final void <B>clearProperty</B>(int propertyId)</PRE> <DL> <DD><p>Clears the value of the property given by <tt>propertyId</tt></p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="colorProperty(int)"><!-- --></A><H3> colorProperty</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> <B>colorProperty</B>(int propertyId)</PRE> <DL> <DD><p>Returns the value of the property given by <tt>propertyId</tt>; if the property isn't of QVariant::Color type, an invalid color is returned instead.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#setProperty(int, java.lang.Object)"><tt>setProperty</tt></a>, <a href="QTextFormat.html#boolProperty(int)"><tt>boolProperty</tt></a>, <a href="QTextFormat.html#intProperty(int)"><tt>intProperty</tt></a>, <a href="QTextFormat.html#doubleProperty(int)"><tt>doubleProperty</tt></a>, <a href="QTextFormat.html#stringProperty(int)"><tt>stringProperty</tt></a>, <a href="QTextFormat.html#lengthProperty(int)"><tt>lengthProperty</tt></a>, <a href="QTextFormat.html#lengthVectorProperty(int)"><tt>lengthVectorProperty</tt></a>, <a href="QTextFormat.html#Property-enum">Property</tt></a></DL> </DD> </DL> <HR> <A NAME="doubleProperty(int)"><!-- --></A><H3> doubleProperty</H3> <PRE> public final double <B>doubleProperty</B>(int propertyId)</PRE> <DL> <DD><p>Returns the value of the property specified by <tt>propertyId</tt>. If the property isn't of QVariant::Double type, 0 is returned instead.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#setProperty(int, java.lang.Object)"><tt>setProperty</tt></a>, <a href="QTextFormat.html#boolProperty(int)"><tt>boolProperty</tt></a>, <a href="QTextFormat.html#intProperty(int)"><tt>intProperty</tt></a>, <a href="QTextFormat.html#stringProperty(int)"><tt>stringProperty</tt></a>, <a href="QTextFormat.html#colorProperty(int)"><tt>colorProperty</tt></a>, <a href="QTextFormat.html#lengthProperty(int)"><tt>lengthProperty</tt></a>, <a href="QTextFormat.html#lengthVectorProperty(int)"><tt>lengthVectorProperty</tt></a>, <a href="QTextFormat.html#Property-enum">Property</tt></a></DL> </DD> </DL> <HR> <A NAME="foreground()"><!-- --></A><H3> foreground</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> <B>foreground</B>()</PRE> <DL> <DD><p>Returns the brush used to render foreground details, such as text, frame outlines, and table borders.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#setForeground(com.trolltech.qt.gui.QBrush)"><tt>setForeground</tt></a>, <a href="QTextFormat.html#clearForeground()"><tt>clearForeground</tt></a>, <a href="QTextFormat.html#background()"><tt>background</tt></a></DL> </DD> </DL> <HR> <A NAME="hasProperty(int)"><!-- --></A><H3> hasProperty</H3> <PRE> public final boolean <B>hasProperty</B>(int propertyId)</PRE> <DL> <DD><p>Returns true if the text format has a property with the given <tt>propertyId</tt>; otherwise returns false.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#properties()"><tt>properties</tt></a>, <a href="QTextFormat.html#Property-enum">Property</tt></a></DL> </DD> </DL> <HR> <A NAME="intProperty(int)"><!-- --></A><H3> intProperty</H3> <PRE> public final int <B>intProperty</B>(int propertyId)</PRE> <DL> <DD><p>Returns the value of the property specified by <tt>propertyId</tt>. If the property is not of QTextFormat::Integer type, 0 is returned instead.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#setProperty(int, java.lang.Object)"><tt>setProperty</tt></a>, <a href="QTextFormat.html#boolProperty(int)"><tt>boolProperty</tt></a>, <a href="QTextFormat.html#doubleProperty(int)"><tt>doubleProperty</tt></a>, <a href="QTextFormat.html#stringProperty(int)"><tt>stringProperty</tt></a>, <a href="QTextFormat.html#colorProperty(int)"><tt>colorProperty</tt></a>, <a href="QTextFormat.html#lengthProperty(int)"><tt>lengthProperty</tt></a>, <a href="QTextFormat.html#lengthVectorProperty(int)"><tt>lengthVectorProperty</tt></a>, <a href="QTextFormat.html#Property-enum">Property</tt></a></DL> </DD> </DL> <HR> <A NAME="isBlockFormat()"><!-- --></A><H3> isBlockFormat</H3> <PRE> public final boolean <B>isBlockFormat</B>()</PRE> <DL> <DD><p>Returns true if this text format is a <tt>BlockFormat</tt>; otherwise returns false.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isCharFormat()"><!-- --></A><H3> isCharFormat</H3> <PRE> public final boolean <B>isCharFormat</B>()</PRE> <DL> <DD><p>Returns true if this text format is a <tt>CharFormat</tt>; otherwise returns false.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isFrameFormat()"><!-- --></A><H3> isFrameFormat</H3> <PRE> public final boolean <B>isFrameFormat</B>()</PRE> <DL> <DD><p>Returns true if this text format is a <tt>FrameFormat</tt>; otherwise returns false.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isImageFormat()"><!-- --></A><H3> isImageFormat</H3> <PRE> public final boolean <B>isImageFormat</B>()</PRE> <DL> <DD><p>Returns true if this text format is an image format; otherwise returns false.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isListFormat()"><!-- --></A><H3> isListFormat</H3> <PRE> public final boolean <B>isListFormat</B>()</PRE> <DL> <DD><p>Returns true if this text format is a <tt>ListFormat</tt>; otherwise returns false.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isTableFormat()"><!-- --></A><H3> isTableFormat</H3> <PRE> public final boolean <B>isTableFormat</B>()</PRE> <DL> <DD><p>Returns true if this text format is a <tt>TableFormat</tt>; otherwise returns false.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isValid()"><!-- --></A><H3> isValid</H3> <PRE> public boolean <B>isValid</B>()</PRE> <DL> <DD><p>Returns true if the format is valid (i.e. is not <a href="QTextFormat.html#FormatType-enum"><tt>InvalidFormat</tt></a>); otherwise returns false.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="layoutDirection()"><!-- --></A><H3> layoutDirection</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/Qt.LayoutDirection.html" title="enum in com.trolltech.qt.core">Qt.LayoutDirection</A> <B>layoutDirection</B>()</PRE> <DL> <DD><p>Returns the document's layout direction.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#setLayoutDirection(com.trolltech.qt.core.Qt.LayoutDirection)"><tt>setLayoutDirection</tt></a></DL> </DD> </DL> <HR> <A NAME="lengthProperty(int)"><!-- --></A><H3> lengthProperty</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QTextLength.html" title="class in com.trolltech.qt.gui">QTextLength</A> <B>lengthProperty</B>(int propertyId)</PRE> <DL> <DD><p>Returns the value of the property given by <tt>propertyId</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#setProperty(int, java.lang.Object)"><tt>setProperty</tt></a>, <a href="QTextFormat.html#boolProperty(int)"><tt>boolProperty</tt></a>, <a href="QTextFormat.html#intProperty(int)"><tt>intProperty</tt></a>, <a href="QTextFormat.html#doubleProperty(int)"><tt>doubleProperty</tt></a>, <a href="QTextFormat.html#stringProperty(int)"><tt>stringProperty</tt></a>, <a href="QTextFormat.html#colorProperty(int)"><tt>colorProperty</tt></a>, <a href="QTextFormat.html#lengthVectorProperty(int)"><tt>lengthVectorProperty</tt></a>, <a href="QTextFormat.html#Property-enum">Property</tt></a></DL> </DD> </DL> <HR> <A NAME="lengthVectorProperty(int)"><!-- --></A><H3> lengthVectorProperty</H3> <PRE> public final java.util.List<<A HREF="../../../../com/trolltech/qt/gui/QTextLength.html" title="class in com.trolltech.qt.gui">QTextLength</A>> <B>lengthVectorProperty</B>(int propertyId)</PRE> <DL> <DD><p>Returns the value of the property given by <tt>propertyId</tt>. If the property isn't of QTextFormat::LengthVector type, an empty length vector is returned instead.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#setProperty(int, java.lang.Object)"><tt>setProperty</tt></a>, <a href="QTextFormat.html#boolProperty(int)"><tt>boolProperty</tt></a>, <a href="QTextFormat.html#intProperty(int)"><tt>intProperty</tt></a>, <a href="QTextFormat.html#doubleProperty(int)"><tt>doubleProperty</tt></a>, <a href="QTextFormat.html#stringProperty(int)"><tt>stringProperty</tt></a>, <a href="QTextFormat.html#colorProperty(int)"><tt>colorProperty</tt></a>, <a href="QTextFormat.html#lengthProperty(int)"><tt>lengthProperty</tt></a>, <a href="QTextFormat.html#Property-enum">Property</tt></a></DL> </DD> </DL> <HR> <A NAME="merge(com.trolltech.qt.gui.QTextFormat)"><!-- --></A><H3> merge</H3> <PRE> public final void <B>merge</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A> other)</PRE> <DL> <DD><p>Merges the <tt>other</tt> format with this format; where there are conflicts the <tt>other</tt> format takes precedence.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="objectIndex()"><!-- --></A><H3> objectIndex</H3> <PRE> public final int <B>objectIndex</B>()</PRE> <DL> <DD><p>Returns the index of the format object, or -1 if the format object is invalid.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#setObjectIndex(int)"><tt>setObjectIndex</tt></a></DL> </DD> </DL> <HR> <A NAME="objectType()"><!-- --></A><H3> objectType</H3> <PRE> public final int <B>objectType</B>()</PRE> <DL> <DD><p>Returns the text format's object type. See <tt>ObjectTypes</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#setObjectType(int)"><tt>setObjectType</tt></a></DL> </DD> </DL> <HR> <A NAME="writeTo(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3> writeTo</H3> <PRE> public final void <B>writeTo</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A> arg__1)</PRE> <DL> <DD>Writes thisQTextFormat to arg__1. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="readFrom(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3> readFrom</H3> <PRE> public final void <B>readFrom</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A> arg__1)</PRE> <DL> <DD>Reads a QTextFormat from arg__1. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="penProperty(int)"><!-- --></A><H3> penProperty</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QPen.html" title="class in com.trolltech.qt.gui">QPen</A> <B>penProperty</B>(int propertyId)</PRE> <DL> <DD><p>Returns the value of the property given by <tt>propertyId</tt>; if the property isn't of QVariant::Pen type, Qt::NoPen is returned instead.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#setProperty(int, java.lang.Object)"><tt>setProperty</tt></a>, <a href="QTextFormat.html#boolProperty(int)"><tt>boolProperty</tt></a>, <a href="QTextFormat.html#intProperty(int)"><tt>intProperty</tt></a>, <a href="QTextFormat.html#doubleProperty(int)"><tt>doubleProperty</tt></a>, <a href="QTextFormat.html#stringProperty(int)"><tt>stringProperty</tt></a>, <a href="QTextFormat.html#lengthProperty(int)"><tt>lengthProperty</tt></a>, <a href="QTextFormat.html#lengthVectorProperty(int)"><tt>lengthVectorProperty</tt></a>, <a href="QTextFormat.html#Property-enum">Property</tt></a></DL> </DD> </DL> <HR> <A NAME="properties()"><!-- --></A><H3> properties</H3> <PRE> public final java.util.SortedMap<java.lang.Integer,java.lang.Object> <B>properties</B>()</PRE> <DL> <DD><p>Returns a map with all properties of this text format.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="property(int)"><!-- --></A><H3> property</H3> <PRE> public final java.lang.Object <B>property</B>(int propertyId)</PRE> <DL> <DD><p>Returns the property specified by the given <tt>propertyId</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#setProperty(int, java.lang.Object)"><tt>setProperty</tt></a></DL> </DD> </DL> <HR> <A NAME="propertyCount()"><!-- --></A><H3> propertyCount</H3> <PRE> public final int <B>propertyCount</B>()</PRE> <DL> <DD><p>Returns the number of properties stored in the format.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setBackground(com.trolltech.qt.gui.QBrush)"><!-- --></A><H3> setBackground</H3> <PRE> public final void <B>setBackground</B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> brush)</PRE> <DL> <DD><p>Sets the brush use to paint the document's background to the <tt>brush</tt> specified.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#background()"><tt>background</tt></a>, <a href="QTextFormat.html#clearBackground()"><tt>clearBackground</tt></a>, <a href="QTextFormat.html#setForeground(com.trolltech.qt.gui.QBrush)"><tt>setForeground</tt></a></DL> </DD> </DL> <HR> <A NAME="setForeground(com.trolltech.qt.gui.QBrush)"><!-- --></A><H3> setForeground</H3> <PRE> public final void <B>setForeground</B>(<A HREF="../../../../com/trolltech/qt/gui/QBrush.html" title="class in com.trolltech.qt.gui">QBrush</A> brush)</PRE> <DL> <DD><p>Sets the foreground brush to the specified <tt>brush</tt>. The foreground brush is mostly used to render text.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#foreground()"><tt>foreground</tt></a>, <a href="QTextFormat.html#clearForeground()"><tt>clearForeground</tt></a>, <a href="QTextFormat.html#setBackground(com.trolltech.qt.gui.QBrush)"><tt>setBackground</tt></a></DL> </DD> </DL> <HR> <A NAME="setLayoutDirection(com.trolltech.qt.core.Qt.LayoutDirection)"><!-- --></A><H3> setLayoutDirection</H3> <PRE> public final void <B>setLayoutDirection</B>(<A HREF="../../../../com/trolltech/qt/core/Qt.LayoutDirection.html" title="enum in com.trolltech.qt.core">Qt.LayoutDirection</A> direction)</PRE> <DL> <DD><p>Sets the document's layout direction to the specified <tt>direction</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#layoutDirection()"><tt>layoutDirection</tt></a></DL> </DD> </DL> <HR> <A NAME="setObjectIndex(int)"><!-- --></A><H3> setObjectIndex</H3> <PRE> public final void <B>setObjectIndex</B>(int object)</PRE> <DL> <DD><p>Sets the format object's object <tt>object</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#objectIndex()"><tt>objectIndex</tt></a></DL> </DD> </DL> <HR> <A NAME="setObjectType(int)"><!-- --></A><H3> setObjectType</H3> <PRE> public final void <B>setObjectType</B>(int type)</PRE> <DL> <DD><p>Sets the text format's object <tt>type</tt>. See <tt>ObjectTypes</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#objectType()"><tt>objectType</tt></a></DL> </DD> </DL> <HR> <A NAME="setProperty(int, java.util.List)"><!-- --></A><H3> setProperty</H3> <PRE> public final void <B>setProperty</B>(int propertyId, java.util.List<<A HREF="../../../../com/trolltech/qt/gui/QTextLength.html" title="class in com.trolltech.qt.gui">QTextLength</A>> lengths)</PRE> <DL> <DD><p>Sets the value of the property given by <tt>propertyId</tt> to <tt>lengths</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#lengthVectorProperty(int)"><tt>lengthVectorProperty</tt></a>, <a href="QTextFormat.html#Property-enum">Property</tt></a></DL> </DD> </DL> <HR> <A NAME="setProperty(int, java.lang.Object)"><!-- --></A><H3> setProperty</H3> <PRE> public final void <B>setProperty</B>(int propertyId, java.lang.Object value)</PRE> <DL> <DD><p>Sets the property specified by the <tt>propertyId</tt> to the given <tt>value</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#property(int)"><tt>property</tt></a></DL> </DD> </DL> <HR> <A NAME="stringProperty(int)"><!-- --></A><H3> stringProperty</H3> <PRE> public final java.lang.String <B>stringProperty</B>(int propertyId)</PRE> <DL> <DD><p>Returns the value of the property given by <tt>propertyId</tt>; if the property isn't of QVariant::String type, an empty string is returned instead.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#setProperty(int, java.lang.Object)"><tt>setProperty</tt></a>, <a href="QTextFormat.html#boolProperty(int)"><tt>boolProperty</tt></a>, <a href="QTextFormat.html#intProperty(int)"><tt>intProperty</tt></a>, <a href="QTextFormat.html#doubleProperty(int)"><tt>doubleProperty</tt></a>, <a href="QTextFormat.html#colorProperty(int)"><tt>colorProperty</tt></a>, <a href="QTextFormat.html#lengthProperty(int)"><tt>lengthProperty</tt></a>, <a href="QTextFormat.html#lengthVectorProperty(int)"><tt>lengthVectorProperty</tt></a>, <a href="QTextFormat.html#Property-enum">Property</tt></a></DL> </DD> </DL> <HR> <A NAME="toBlockFormat()"><!-- --></A><H3> toBlockFormat</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QTextBlockFormat.html" title="class in com.trolltech.qt.gui">QTextBlockFormat</A> <B>toBlockFormat</B>()</PRE> <DL> <DD><p>Returns this format as a block format.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="toCharFormat()"><!-- --></A><H3> toCharFormat</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A> <B>toCharFormat</B>()</PRE> <DL> <DD><p>Returns this format as a character format.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="toFrameFormat()"><!-- --></A><H3> toFrameFormat</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QTextFrameFormat.html" title="class in com.trolltech.qt.gui">QTextFrameFormat</A> <B>toFrameFormat</B>()</PRE> <DL> <DD><p>Returns this format as a frame format.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="toImageFormat()"><!-- --></A><H3> toImageFormat</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QTextImageFormat.html" title="class in com.trolltech.qt.gui">QTextImageFormat</A> <B>toImageFormat</B>()</PRE> <DL> <DD><p>Returns this format as an image format.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="toListFormat()"><!-- --></A><H3> toListFormat</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QTextListFormat.html" title="class in com.trolltech.qt.gui">QTextListFormat</A> <B>toListFormat</B>()</PRE> <DL> <DD><p>Returns this format as a list format.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="toTableFormat()"><!-- --></A><H3> toTableFormat</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QTextTableFormat.html" title="class in com.trolltech.qt.gui">QTextTableFormat</A> <B>toTableFormat</B>()</PRE> <DL> <DD><p>Returns this format as a table format.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="type()"><!-- --></A><H3> type</H3> <PRE> public final int <B>type</B>()</PRE> <DL> <DD><p>Returns the type of this format.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextFormat.html#ObjectTypes-enum"><tt>ObjectTypes</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/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> nativePointer)</PRE> <DL> <DD>This function returns the QTextFormat instance pointed to by nativePointer <P> <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.QTextFormat[])"><!-- --></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/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A>[] array)</PRE> <DL> <DD>This function returns a QNativePointer that is pointing to the specified QTextFormat array. <P> <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 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> <!-- ========= 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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/gui/QTextEdit.LineWrapMode.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/gui/QTextFormat.FormatType.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/QTextFormat.html" target="_top"><B>FRAMES</B></A> <A HREF="QTextFormat.html" target="_top"><B>NO FRAMES</B></A> <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: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>