<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # QTextFormat Class Reference ## [[QtGui](index.htm) module] 該QTextFormat類提供的格式化信息的[QTextDocument](qtextdocument.html)。[More...](#details) 通過繼承[QTextBlockFormat](qtextblockformat.html),[QTextCharFormat](qtextcharformat.html),[QTextFrameFormat](qtextframeformat.html)和[QTextListFormat](qtextlistformat.html)。 ### Types * `enum FormatType { InvalidFormat, BlockFormat, CharFormat, ListFormat, ..., UserFormat }` * `enum ObjectTypes { NoObject, ImageObject, TableObject, TableCellObject, UserObject }` * `enum PageBreakFlag { PageBreak_Auto, PageBreak_AlwaysBefore, PageBreak_AlwaysAfter }` * `class **[PageBreakFlags](index.htm)**` * `enum Property { ObjectIndex, CssFloat, LayoutDirection, OutlinePen, ..., UserProperty }` ### Methods * `__init__ (self)` * `__init__ (self, int?type)` * `__init__ (self, QTextFormat?rhs)` * `__init__ (self, QVariant?variant)` * `QBrush background (self)` * `bool boolProperty (self, int?propertyId)` * `QBrush brushProperty (self, int?propertyId)` * `clearBackground (self)` * `clearForeground (self)` * `clearProperty (self, int?propertyId)` * `QColor colorProperty (self, int?propertyId)` * `float doubleProperty (self, int?propertyId)` * `QBrush foreground (self)` * `bool hasProperty (self, int?propertyId)` * `int intProperty (self, int?propertyId)` * `bool isBlockFormat (self)` * `bool isCharFormat (self)` * `bool isFrameFormat (self)` * `bool isImageFormat (self)` * `bool isListFormat (self)` * `bool isTableCellFormat (self)` * `bool isTableFormat (self)` * `bool isValid (self)` * `Qt.LayoutDirection layoutDirection (self)` * `QTextLength lengthProperty (self, int?propertyId)` * `list-of-QTextLength lengthVectorProperty (self, int?propertyId)` * `merge (self, QTextFormat?other)` * `int objectIndex (self)` * `int objectType (self)` * `QPen penProperty (self, int?propertyId)` * `dict-of-int-QVariant properties (self)` * `QVariant property (self, int?propertyId)` * `int propertyCount (self)` * `setBackground (self, QBrush?brush)` * `setForeground (self, QBrush?brush)` * `setLayoutDirection (self, Qt.LayoutDirection?direction)` * `setObjectIndex (self, int?object)` * `setObjectType (self, int?atype)` * `setProperty (self, int?propertyId, QVariant?value)` * `setProperty (self, int?propertyId, list-of-QTextLength?lengths)` * `QString stringProperty (self, int?propertyId)` * `QTextBlockFormat toBlockFormat (self)` * `QTextCharFormat toCharFormat (self)` * `QTextFrameFormat toFrameFormat (self)` * `QTextImageFormat toImageFormat (self)` * `QTextListFormat toListFormat (self)` * `QTextTableCellFormat toTableCellFormat (self)` * `QTextTableFormat toTableFormat (self)` * `int type (self)` ### Special Methods * `bool __eq__ (self, QTextFormat?rhs)` * `bool __ne__ (self, QTextFormat?rhs)` * * * ## Detailed Description 該QTextFormat類提供的格式化信息的[QTextDocument](qtextdocument.html)。 一個QTextFormat是用于描述一個部分的格式泛型類[QTextDocument](qtextdocument.html)。派生類[QTextCharFormat](qtextcharformat.html),[QTextBlockFormat](qtextblockformat.html),[QTextListFormat](qtextlistformat.html)和[QTextTableFormat](qtexttableformat.html)通常比較有益的,并且描述了應用到文檔的特定部分的格式。 的一種格式有`FormatType`它指定了各種文本項目也可以格式化;如文本塊,列表,表格等的一種格式還具有各種屬性(一些具體的特定格式類型) ,所描述的屬性枚舉。每個屬性都有相應的屬性。 格式類型由下式給出[type](qtextformat.html#type)() ,并且格式可以與測試[isCharFormat](qtextformat.html#isCharFormat)( )[isBlockFormat](qtextformat.html#isBlockFormat)( )[isListFormat](qtextformat.html#isListFormat)( )[isTableFormat](qtextformat.html#isTableFormat)( )[isFrameFormat](qtextformat.html#isFrameFormat)()和[isImageFormat](qtextformat.html#isImageFormat)( ) 。如果類型是確定的,它可以被檢索以[toCharFormat](qtextformat.html#toCharFormat)( )[toBlockFormat](qtextformat.html#toBlockFormat)( )[toListFormat](qtextformat.html#toListFormat)( )[toTableFormat](qtextformat.html#toTableFormat)( )[toFrameFormat](qtextformat.html#toFrameFormat)()和[toImageFormat](qtextformat.html#toImageFormat)( ) 。 的一種格式的屬性可以與設置[setProperty](qtextformat.html#setProperty)()函數,并檢索與[boolProperty](qtextformat.html#boolProperty)( )[intProperty](qtextformat.html#intProperty)( )[doubleProperty](qtextformat.html#doubleProperty)()和[stringProperty](qtextformat.html#stringProperty)( ) (如適用) 。所有的格式使用的屬性ID可以檢索到allPropertyIds ( ) 。一種格式可以被合并到另一個使用[merge](qtextformat.html#merge)( ) 。 的一種格式的對象的索引可以被設置[setObjectIndex](qtextformat.html#setObjectIndex)() ,并檢索與[objectIndex](qtextformat.html#objectIndex)( ) 。這些方法可用于編排格式,相關聯[QTextObject](qtextobject.html)。它是用來表示文檔內列出,框架和表格。 * * * ## Type Documentation ``` QTextFormat.FormatType ``` 這個枚舉變量描述文本項目的[QTextFormat](qtextformat.html)對象被格式化。 | Constant | Value | Description | | --- | --- | --- | | `QTextFormat.InvalidFormat` | `-1` | 由默認的構造函數創建一個無效的格式 | | `QTextFormat.BlockFormat` | `1` | 對象格式化文本塊 | | `QTextFormat.CharFormat` | `2` | 對象格式的單個字符 | | `QTextFormat.ListFormat` | `3` | 對象格式列表 | | `QTextFormat.TableFormat` | `4` | 對象格式的表 | | `QTextFormat.FrameFormat` | `5` | 對象格式的幀 | | `QTextFormat.UserFormat` | `100` | ? | **See also** [QTextCharFormat](qtextcharformat.html),[QTextBlockFormat](qtextblockformat.html),[QTextListFormat](qtextlistformat.html),[QTextTableFormat](qtexttableformat.html)和[type](qtextformat.html#type)( ) 。 ``` QTextFormat.ObjectTypes ``` 這個枚舉說明是什么樣的[QTextObject](qtextobject.html)此格式是與相關聯。 | Constant | Value | Description | | --- | --- | --- | | `QTextFormat.NoObject` | `0` | ? | | `QTextFormat.ImageObject` | `1` | ? | | `QTextFormat.TableObject` | `2` | ? | | `QTextFormat.TableCellObject` | `3` | ? | | `QTextFormat.UserObject` | `0x1000` | 第一對象,該對象可以用于特定應用的目的。 | **See also** [QTextObject](qtextobject.html),[QTextTable](qtexttable.html)和[QTextObject.format](qtextobject.html#format)( ) 。 ``` QTextFormat.PageBreakFlag ``` 這個枚舉變量描述了如何打印網頁時斷進行。它映射到相應的CSS屬性。 | Constant | Value | Description | | --- | --- | --- | | `QTextFormat.PageBreak_Auto` | `0` | 分頁符是根據當前頁面上的可用空間自動確定 | | `QTextFormat.PageBreak_AlwaysBefore` | `0x001` | 該頁面段落/表之前被破 | | `QTextFormat.PageBreak_AlwaysAfter` | `0x010` | 一個新的頁面段落/表后總是啟動 | 這個枚舉被引入或修改的Qt 4.2 。 該PageBreakFlags類型是一個typedef為[QFlags](index.htm)\u003cPageBreakFlag\u003e 。它存儲PageBreakFlag值的或組合。 **See also** [QTextBlockFormat.pageBreakPolicy](qtextblockformat.html#pageBreakPolicy)( )[QTextFrameFormat.pageBreakPolicy](qtextframeformat.html#pageBreakPolicy)()和[PageBreakPolicy](qtextformat.html#Property-enum)。 ``` QTextFormat.Property ``` 這個枚舉變量描述了不同屬性的格式可以有。 | Constant | Value | Description | | --- | --- | --- | | `QTextFormat.ObjectIndex` | `0x0` | 格式化的對象的索引。看[objectIndex](qtextformat.html#objectIndex)( ) 。 | 段落和字符屬性 | Constant | Value | Description | | --- | --- | --- | | `QTextFormat.CssFloat` | `0x0800` | 如何一幀位于相對于周圍文本 | | `QTextFormat.LayoutDirection` | `0x0801` | 本文檔中的文本的布局方向([Qt.LayoutDirection](qt.html#LayoutDirection-enum)) 。 | | `QTextFormat.OutlinePen` | `0x810` | ? | | `QTextFormat.ForegroundBrush` | `0x821` | ? | | `QTextFormat.BackgroundBrush` | `0x820` | ? | | `QTextFormat.BackgroundImageUrl` | `0x823` | ? | 段落屬性 | Constant | Value | Description | | --- | --- | --- | | `QTextFormat.BlockAlignment` | `0x1010` | ? | | `QTextFormat.BlockTopMargin` | `0x1030` | ? | | `QTextFormat.BlockBottomMargin` | `0x1031` | ? | | `QTextFormat.BlockLeftMargin` | `0x1032` | ? | | `QTextFormat.BlockRightMargin` | `0x1033` | ? | | `QTextFormat.TextIndent` | `0x1034` | ? | | `QTextFormat.TabPositions` | `0x1035` | 指定標籤的位置。該選項卡的位置是結構[QTextOption.Tab](index.htm)它們被存儲在一個[QList](index.htm)(在內部,在[QList](index.htm)\u003c[QVariant](qvariant.html)\u003e ) 。 | | `QTextFormat.BlockIndent` | `0x1040` | ? | | `QTextFormat.LineHeight` | `0x1048` | ? | | `QTextFormat.LineHeightType` | `0x1049` | ? | | `QTextFormat.BlockNonBreakableLines` | `0x1050` | ? | | `QTextFormat.BlockTrailingHorizontalRulerWidth` | `0x1060` | 水平尺元素的寬度。 | 字符屬性 | Constant | Value | Description | | --- | --- | --- | | `QTextFormat.FontFamily` | `0x2000` | ? | | `QTextFormat.FontPointSize` | `0x2001` | ? | | `QTextFormat.FontPixelSize` | `0x2009` | ? | | `QTextFormat.FontSizeAdjustment` | `0x2002` | 指定給使用FontPointSize或FontPixelSize已經設置字號大小的變化。 | | `QTextFormat.FontFixedPitch` | `0x2008` | ? | | `QTextFormat.FontWeight` | `0x2003` | ? | | `QTextFormat.FontItalic` | `0x2004` | ? | | `QTextFormat.FontUnderline` | `0x2005` | _This property has been deprecated._使用QTextFormat.TextUnderlineStyle代替。 | | `QTextFormat.FontOverline` | `0x2006` | ? | | `QTextFormat.FontStrikeOut` | `0x2007` | ? | | `QTextFormat.FontCapitalization` | `FirstFontProperty` | 指定大寫類型將要被施加到文本。 | | `QTextFormat.FontLetterSpacing` | `0x1FE1` | 改變字體中的各個字母之間的默認間距。該值指定百分比,100為默認值。 | | `QTextFormat.FontWordSpacing` | `0x1FE2` | 改變個別單詞之間的默認間距。正值增加了字間距由相應的像素;負值減小的間距。 | | `QTextFormat.FontStyleHint` | `0x1FE3` | 對應于[QFont.StyleHint](qfont.html#StyleHint-enum)屬性 | | `QTextFormat.FontStyleStrategy` | `0x1FE4` | 對應于[QFont.StyleStrategy](qfont.html#StyleStrategy-enum)屬性 | | `QTextFormat.FontKerning` | `0x1FE5` | 指定字體是否已經字距調整開啟。 | | `QTextFormat.FontHintingPreference` | `0x1FE6` | 控制根據的值的提示的使用[QFont.HintingPreference](qfont.html#HintingPreference-enum)枚舉。 | | `QTextFormat.TextUnderlineColor` | `0x2010` | ? | | `QTextFormat.TextVerticalAlignment` | `0x2021` | ? | | `QTextFormat.TextOutline` | `0x2022` | ? | | `QTextFormat.TextUnderlineStyle` | `0x2023` | ? | | `QTextFormat.TextToolTip` | `0x2024` | 指定(可選)刀尖要顯示的文本片段。 | | `QTextFormat.IsAnchor` | `0x2030` | ? | | `QTextFormat.AnchorHref` | `0x2031` | ? | | `QTextFormat.AnchorName` | `0x2032` | ? | | `QTextFormat.ObjectType` | `0x2f00` | ? | 列表屬性 | Constant | Value | Description | | --- | --- | --- | | `QTextFormat.ListStyle` | `0x3000` | 指定用于在一個列表中的項目的樣式,由值描述[QTextListFormat.Style](qtextlistformat.html#Style-enum)枚舉。 | | `QTextFormat.ListIndent` | `0x3001` | 指定縮進用于列表的量。 | | `QTextFormat.ListNumberPrefix` | `0x3002` | 定義了被前置到項目編號以數字列表的文本。 | | `QTextFormat.ListNumberSuffix` | `0x3003` | 定義了附加到項目編號以數字列表的文本。 | 表和框架屬性 | Constant | Value | Description | | --- | --- | --- | | `QTextFormat.FrameBorder` | `0x4000` | ? | | `QTextFormat.FrameBorderBrush` | `0x4009` | ? | | `QTextFormat.FrameBorderStyle` | `0x4010` | 請參閱[BorderStyle](qtextframeformat.html#BorderStyle-enum)枚舉。 | | `QTextFormat.FrameBottomMargin` | `0x4006` | ? | | `QTextFormat.FrameHeight` | `0x4004` | ? | | `QTextFormat.FrameLeftMargin` | `0x4007` | ? | | `QTextFormat.FrameMargin` | `0x4001` | ? | | `QTextFormat.FramePadding` | `0x4002` | ? | | `QTextFormat.FrameRightMargin` | `0x4008` | ? | | `QTextFormat.FrameTopMargin` | `0x4005` | ? | | `QTextFormat.FrameWidth` | `0x4003` | ? | | `QTextFormat.TableCellSpacing` | `0x4102` | ? | | `QTextFormat.TableCellPadding` | `0x4103` | ? | | `QTextFormat.TableColumns` | `0x4100` | ? | | `QTextFormat.TableColumnWidthConstraints` | `0x4101` | ? | | `QTextFormat.TableHeaderRowCount` | `0x4104` | ? | 表單元格屬性 | Constant | Value | | --- | --- | | `QTextFormat.TableCellRowSpan` | `0x4810` | | `QTextFormat.TableCellColumnSpan` | `0x4811` | | `QTextFormat.TableCellLeftPadding` | `0x4814` | | `QTextFormat.TableCellRightPadding` | `0x4815` | | `QTextFormat.TableCellTopPadding` | `0x4812` | | `QTextFormat.TableCellBottomPadding` | `0x4813` | 圖像性能 | Constant | Value | | --- | --- | | `QTextFormat.ImageName` | `0x5000` | | `QTextFormat.ImageWidth` | `0x5010` | | `QTextFormat.ImageHeight` | `0x5011` | 選擇屬性 | Constant | Value | Description | | --- | --- | --- | | `QTextFormat.FullWidthSelection` | `0x06000` | 當在選擇的characterFormat設置,文本的整個寬度上會顯示所選的。 | 分頁符的屬性 | Constant | Value | Description | | --- | --- | --- | | `QTextFormat.PageBreakPolicy` | `0x7000` | 指定如何頁面被打破。請參閱[PageBreakFlag](qtextformat.html#PageBreakFlag-enum)枚舉。 | | `QTextFormat.UserProperty` | `0x100000` | ? | **See also** [property](qtextformat.html#property)()和[setProperty](qtextformat.html#setProperty)( ) 。 * * * ## Method Documentation ``` QTextFormat.__init__ (self) ``` 創建有一個新的文本格式`InvalidFormat`。 **See also** [FormatType](qtextformat.html#FormatType-enum)。 ``` QTextFormat.__init__ (self, int?type) ``` 創建給定一個新的文本格式_type_。 **See also** [FormatType](qtextformat.html#FormatType-enum)。 ``` QTextFormat.__init__ (self, QTextFormat?rhs) ``` 創建一個具有相同屬性的新文本格式_other_文本格式。 ``` QTextFormat.__init__ (self, QVariant?variant) ``` ``` QBrush QTextFormat.background (self) ``` [ 返回用于繪制文檔的背景的畫筆。 ](qbrush.html) [**See also**](qbrush.html) [setBackground](qtextformat.html#setBackground)( )[clearBackground](qtextformat.html#clearBackground)()和[foreground](qtextformat.html#foreground)( ) 。 ``` bool QTextFormat.boolProperty (self, int?propertyId) ``` 返回由指定的屬性值_propertyId_。如果屬性是QTextFormat.Bool類型沒有,則返回False來代替。 **See also** [setProperty](qtextformat.html#setProperty)( )[intProperty](qtextformat.html#intProperty)( )[doubleProperty](qtextformat.html#doubleProperty)( )[stringProperty](qtextformat.html#stringProperty)( )[colorProperty](qtextformat.html#colorProperty)( )[lengthProperty](qtextformat.html#lengthProperty)( )[lengthVectorProperty](qtextformat.html#lengthVectorProperty)()和[Property](qtextformat.html#Property-enum)。 ``` QBrush QTextFormat.brushProperty (self, int?propertyId) ``` [](qbrush.html) [返回由給定屬性的值_propertyId_;如果屬性是不](qbrush.html)[QVariant.Brush](qvariant.html#Type-enum)型,[Qt.NoBrush](qt.html#BrushStyle-enum)返回來代替。 **See also** [setProperty](qtextformat.html#setProperty)( )[boolProperty](qtextformat.html#boolProperty)( )[intProperty](qtextformat.html#intProperty)( )[doubleProperty](qtextformat.html#doubleProperty)( )[stringProperty](qtextformat.html#stringProperty)( )[lengthProperty](qtextformat.html#lengthProperty)( )[lengthVectorProperty](qtextformat.html#lengthVectorProperty)()和[Property](qtextformat.html#Property-enum)。 ``` QTextFormat.clearBackground (self) ``` 清除用于繪制文檔的背景的畫筆。默認刷將被使用。 **See also** [background](qtextformat.html#background)( )[setBackground](qtextformat.html#setBackground)()和[clearForeground](qtextformat.html#clearForeground)( ) 。 ``` QTextFormat.clearForeground (self) ``` 清除用于繪制文檔的前景刷。默認刷將被使用。 **See also** [foreground](qtextformat.html#foreground)( )[setForeground](qtextformat.html#setForeground)()和[clearBackground](qtextformat.html#clearBackground)( ) 。 ``` QTextFormat.clearProperty (self, int?propertyId) ``` 清除由給定屬性的值_propertyId_ **See also** [Property](qtextformat.html#Property-enum)。 ``` QColor QTextFormat.colorProperty (self, int?propertyId) ``` [](qcolor.html) [返回由給定屬性的值_propertyId_;如果屬性是不](qcolor.html)[QVariant.Color](qvariant.html#Type-enum)輸入時,將返回一個無效的顏色來代替。 **See also** [setProperty](qtextformat.html#setProperty)( )[boolProperty](qtextformat.html#boolProperty)( )[intProperty](qtextformat.html#intProperty)( )[doubleProperty](qtextformat.html#doubleProperty)( )[stringProperty](qtextformat.html#stringProperty)( )[lengthProperty](qtextformat.html#lengthProperty)( )[lengthVectorProperty](qtextformat.html#lengthVectorProperty)()和[Property](qtextformat.html#Property-enum)。 ``` float QTextFormat.doubleProperty (self, int?propertyId) ``` 返回由指定的屬性值_propertyId_。如果屬性是不[QVariant.Double](qvariant.html#Type-enum) or [QMetaType.Float](qmetatype.html#Type-enum)類型,則返回0代替。 **See also** [setProperty](qtextformat.html#setProperty)( )[boolProperty](qtextformat.html#boolProperty)( )[intProperty](qtextformat.html#intProperty)( )[stringProperty](qtextformat.html#stringProperty)( )[colorProperty](qtextformat.html#colorProperty)( )[lengthProperty](qtextformat.html#lengthProperty)( )[lengthVectorProperty](qtextformat.html#lengthVectorProperty)()和[Property](qtextformat.html#Property-enum)。 ``` QBrush QTextFormat.foreground (self) ``` [ 返回用于渲染前景的詳細信息,如文字,邊框輪廓,和表格邊框的畫筆。 ](qbrush.html) [**See also**](qbrush.html) [setForeground](qtextformat.html#setForeground)( )[clearForeground](qtextformat.html#clearForeground)()和[background](qtextformat.html#background)( ) 。 ``` bool QTextFormat.hasProperty (self, int?propertyId) ``` 如果文本格式有一個屬性與給定的,則返回True_propertyId_否則返回False 。 **See also** [properties](qtextformat.html#properties)()和[Property](qtextformat.html#Property-enum)。 ``` int QTextFormat.intProperty (self, int?propertyId) ``` 返回由指定的屬性值_propertyId_。如果屬性是QTextFormat.Integer類型沒有,則返回0代替。 **See also** [setProperty](qtextformat.html#setProperty)( )[boolProperty](qtextformat.html#boolProperty)( )[doubleProperty](qtextformat.html#doubleProperty)( )[stringProperty](qtextformat.html#stringProperty)( )[colorProperty](qtextformat.html#colorProperty)( )[lengthProperty](qtextformat.html#lengthProperty)( )[lengthVectorProperty](qtextformat.html#lengthVectorProperty)()和[Property](qtextformat.html#Property-enum)。 ``` bool QTextFormat.isBlockFormat (self) ``` 返回True如果文本格式是`BlockFormat`否則返回False 。 ``` bool QTextFormat.isCharFormat (self) ``` 返回True如果文本格式是`CharFormat`否則返回False 。 ``` bool QTextFormat.isFrameFormat (self) ``` 返回True如果文本格式是`FrameFormat`否則返回False 。 ``` bool QTextFormat.isImageFormat (self) ``` 返回True如果文本格式是一種圖像格式,否則返回False 。 ``` bool QTextFormat.isListFormat (self) ``` 返回True如果文本格式是`ListFormat`否則返回False 。 ``` bool QTextFormat.isTableCellFormat (self) ``` 返回True如果文本格式是`TableCellFormat`否則返回False 。 此功能被引入Qt的4.4 。 ``` bool QTextFormat.isTableFormat (self) ``` 返回True如果文本格式是`TableFormat`否則返回False 。 ``` bool QTextFormat.isValid (self) ``` 返回True如果該格式是有效的(即不[InvalidFormat](qtextformat.html#FormatType-enum)),否則返回False 。 ``` Qt.LayoutDirection QTextFormat.layoutDirection (self) ``` [ 返回文檔的布局方向。 ](qt.html#LayoutDirection-enum) [**See also**](qt.html#LayoutDirection-enum) [setLayoutDirection](qtextformat.html#setLayoutDirection)( ) 。 ``` QTextLength QTextFormat.lengthProperty (self, int?propertyId) ``` [ 返回由給定屬性的值_propertyId_。 ](qtextlength.html) [**See also**](qtextlength.html) [setProperty](qtextformat.html#setProperty)( )[boolProperty](qtextformat.html#boolProperty)( )[intProperty](qtextformat.html#intProperty)( )[doubleProperty](qtextformat.html#doubleProperty)( )[stringProperty](qtextformat.html#stringProperty)( )[colorProperty](qtextformat.html#colorProperty)( )[lengthVectorProperty](qtextformat.html#lengthVectorProperty)()和[Property](qtextformat.html#Property-enum)。 ``` list-of-QTextLength QTextFormat.lengthVectorProperty (self, int?propertyId) ``` 返回由給定屬性的值_propertyId_。如果屬性是QTextFormat.LengthVector類型沒有,則返回空長向量來代替。 **See also** [setProperty](qtextformat.html#setProperty)( )[boolProperty](qtextformat.html#boolProperty)( )[intProperty](qtextformat.html#intProperty)( )[doubleProperty](qtextformat.html#doubleProperty)( )[stringProperty](qtextformat.html#stringProperty)( )[colorProperty](qtextformat.html#colorProperty)( )[lengthProperty](qtextformat.html#lengthProperty)()和[Property](qtextformat.html#Property-enum)。 ``` QTextFormat.merge (self, QTextFormat?other) ``` 合并的_other_這種格式的格式;那里有沖突_other_格式為準。 ``` int QTextFormat.objectIndex (self) ``` 返回格式對象的索引,或者-1,如果格式對象是無效的。 **See also** [setObjectIndex](qtextformat.html#setObjectIndex)( ) 。 ``` int QTextFormat.objectType (self) ``` 返回文本格式的對象類型。 **See also** [ObjectTypes](qtextformat.html#ObjectTypes-enum)和[setObjectType](qtextformat.html#setObjectType)( ) 。 ``` QPen QTextFormat.penProperty (self, int?propertyId) ``` [](qpen.html) [返回由給定屬性的值_propertyId_;如果屬性是不](qpen.html)[QVariant.Pen](qvariant.html#Type-enum)型,[Qt.NoPen](qt.html#PenStyle-enum)返回來代替。 **See also** [setProperty](qtextformat.html#setProperty)( )[boolProperty](qtextformat.html#boolProperty)( )[intProperty](qtextformat.html#intProperty)( )[doubleProperty](qtextformat.html#doubleProperty)( )[stringProperty](qtextformat.html#stringProperty)( )[lengthProperty](qtextformat.html#lengthProperty)( )[lengthVectorProperty](qtextformat.html#lengthVectorProperty)()和[Property](qtextformat.html#Property-enum)。 ``` dict-of-int-QVariant QTextFormat.properties (self) ``` 返回與此文本格式的所有屬性的映射。 ``` QVariant QTextFormat.property (self, int?propertyId) ``` 返回由給定指定的屬性_propertyId_。 **See also** [setProperty](qtextformat.html#setProperty)()和[Property](qtextformat.html#Property-enum)。 ``` int QTextFormat.propertyCount (self) ``` 返回存儲在格式屬性的數量。 此功能被引入Qt的4.3 。 ``` QTextFormat.setBackground (self, QBrush?brush) ``` 設置畫筆使用到文檔的底色漆的_brush_規定。 **See also** [background](qtextformat.html#background)( )[clearBackground](qtextformat.html#clearBackground)()和[setForeground](qtextformat.html#setForeground)( ) 。 ``` QTextFormat.setForeground (self, QBrush?brush) ``` 設置前景色刷到指定的_brush_。前臺刷主要是用來渲染文本。 **See also** [foreground](qtextformat.html#foreground)( )[clearForeground](qtextformat.html#clearForeground)()和[setBackground](qtextformat.html#setBackground)( ) 。 ``` QTextFormat.setLayoutDirection (self, Qt.LayoutDirection?direction) ``` 設置文檔的布局方向的指定的_direction_。 **See also** [layoutDirection](qtextformat.html#layoutDirection)( ) 。 ``` QTextFormat.setObjectIndex (self, int?object) ``` 設置格式的對象的對象_index_。 **See also** [objectIndex](qtextformat.html#objectIndex)( ) 。 ``` QTextFormat.setObjectType (self, int?atype) ``` 設置文本格式的對象類型_type_。 **See also** [ObjectTypes](qtextformat.html#ObjectTypes-enum)和[objectType](qtextformat.html#objectType)( ) 。 ``` QTextFormat.setProperty (self, int?propertyId, QVariant?value) ``` 設置由指定的屬性_propertyId_為給定的_value_。 **See also** [property](qtextformat.html#property)()和[Property](qtextformat.html#Property-enum)。 ``` QTextFormat.setProperty (self, int?propertyId, list-of-QTextLength?lengths) ``` 設置由給定屬性的值_propertyId_至_value_。 **See also** [lengthVectorProperty](qtextformat.html#lengthVectorProperty)()和[Property](qtextformat.html#Property-enum)。 ``` QString QTextFormat.stringProperty (self, int?propertyId) ``` 返回由給定屬性的值_propertyId_;如果屬性是不[QVariant.String](qvariant.html#Type-enum)輸入時,將返回一個空字符串代替。 **See also** [setProperty](qtextformat.html#setProperty)( )[boolProperty](qtextformat.html#boolProperty)( )[intProperty](qtextformat.html#intProperty)( )[doubleProperty](qtextformat.html#doubleProperty)( )[colorProperty](qtextformat.html#colorProperty)( )[lengthProperty](qtextformat.html#lengthProperty)( )[lengthVectorProperty](qtextformat.html#lengthVectorProperty)()和[Property](qtextformat.html#Property-enum)。 ``` QTextBlockFormat QTextFormat.toBlockFormat (self) ``` [ 返回此格式作為塊格式。 ](qtextblockformat.html) ``` QTextCharFormat QTextFormat.toCharFormat (self) ``` [ 返回此格式的字符格式。 ](qtextcharformat.html) ``` QTextFrameFormat QTextFormat.toFrameFormat (self) ``` [ 返回此格式的幀格式。 ](qtextframeformat.html) ``` QTextImageFormat QTextFormat.toImageFormat (self) ``` [ 返回此格式的圖像格式。 ](qtextimageformat.html) ``` QTextListFormat QTextFormat.toListFormat (self) ``` [ 返回此格式列表格式。 ](qtextlistformat.html) ``` QTextTableCellFormat QTextFormat.toTableCellFormat (self) ``` [ 返回此格式的表格單元格的格式。 此功能被引入Qt的4.4 。 ](qtexttablecellformat.html) ``` QTextTableFormat QTextFormat.toTableFormat (self) ``` [ 返回此格式為表格式。 ``` int QTextFormat.type (self) ``` 返回此格式的類型。 ](qtexttableformat.html) [**See also**](qtexttableformat.html) [FormatType](qtextformat.html#FormatType-enum)。 ``` bool QTextFormat.__eq__ (self, QTextFormat?rhs) ``` ``` bool QTextFormat.__ne__ (self, QTextFormat?rhs) ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看