名前 | 解説 | |
---|---|---|
Append | オーバーロードされます。 Adds a text run with default formatting to the end of the Inlines collection. | |
AppendAnchoredObject | Adds an anchored object with specified dimensions to the end of the Inlines collection. | |
AppendInlineObject | オーバーロードされます。 Adds an inline object with specified dimensions to the end of the Inlines collection. | |
AppendLine | オーバーロードされます。 Adds a line break element to the end of the Inlines collection. | |
AppendParagraphBreak | オーバーロードされます。 Adds a special character (0x2029) that causes a paragraph break but prevents a page break between paragraphs (GrapeCity specifics). | |
AppendSectionBreak | オーバーロードされます。 Appends a form feed character ('\f', character code 0x000C) to the text. This causes any text added after it to "not fit" - if the text layout is drawn, that text will not be rendered. If the Split() method is called, the text will be split at this point. | |
AppendSoftBreak | オーバーロードされます。 Adds a line separator character (0x2028) that causes a line break without ending the paragraph. | |
ApplyOffset | Adjusts the positions of content rectangle, inline and anchored objects by a specified amount. | |
Clear | Clears the current text layout, removing all text and formatting associated with individual text runs. | |
Clone | Creates a copy of the current TextLayout instance. | |
GetInlineObjectAt | Gets the InlineObject at the specified code point index. | |
GetTextRects | Returns the list of TextRect objects for the specified range of code points. | |
MapCharRangeToCodePoints | Maps a character range to the corresponding code point range. | |
MapCodePointsToCharRange | Maps a code point range to the corresponding character range. | |
PerformLayout | Determines the coordinates for all lines and glyph runs. Optionally calls RecalculateGlyphs prior to performing the layout. | |
RecalculateGlyphs | Converts characters in the current TextLayout to glyphs, and performs text shaping.
In order to layout the text (e.g. when rendering it on a graphics), a call to this method must precede the call(s) to PerformLayout, or alternatively the PerformLayout method should be called with true as the parameter. | |
Split | Fits all or the first portion of the current text layout into the current layout bounds. If the whole text did not fit into the bounds, the rest is moved into a new TextLayout instance specified by the output parameter rest. | |
SplitAndBalance | Fits all or the first portion of the current text layout into one or more layout areas (such as page columns). If the whole text did not fit into the provided areas, the rest is moved into a new TextLayout instance specified by the output parameter rest.
If the whole text fits in the specified areas (i.e. rest is empty), the content is equally distributed between all areas, which in the case of page columns results in columns of equal height (balanced). | |
SplitAndBalanceRef | Fits all or the first portion of the current text layout into one or more layout areas (such as page columns). If the whole text did not fit into the provided areas, the rest is moved into a new TextLayout instance specified by the output parameter rest.
If the whole text fits in the specified areas (i.e. rest is empty), the content is equally distributed between all areas, which in the case of page columns results in columns of equal height (balanced). For details on why providing a reference to an existing TextLayout may be beneficial, see the remarks on the SplitRef method. | |
SplitRef | Fits all or the first portion of the current text layout into the current layout bounds. If the whole text did not fit into the bounds, the rest is moved into the TextLayout instance specified by the reference parameter rest. If it is null, a new TextLayout instance is created. | |
Truncate | If a portion of the text content does not fit into the current layout bounds, removes that portion so that the remaining text fits.
If the text is truncated and lastLineTrimming is not TrimmingGranularity.None, ellipsis (specified by EllipsisCharCode) is appended to the last line to indicate that it was trimmed. |