DioDocs for PDF
TextLayout クラス メソッド

DS.Documents.Imaging アセンブリ > GrapeCity.Documents.Text 名前空間 : TextLayout クラス

このクラスのメンバの一覧は、TextLayoutメンバを参照してください。

パブリック メソッド
 名前解説
Public メソッドオーバーロードされます。 Adds a text run with default formatting to the end of the Inlines collection.  
Public メソッドAdds an anchored object with specified dimensions to the end of the Inlines collection.  
Public メソッドオーバーロードされます。 Adds an inline object with specified dimensions to the end of the Inlines collection.  
Public メソッドオーバーロードされます。 Adds a line break element to the end of the Inlines collection.  
Public メソッドオーバーロードされます。 Adds a special character (0x2029) that causes a paragraph break but prevents a page break between paragraphs (GrapeCity specifics).  
Public メソッドオーバーロードされます。 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.  
Public メソッドオーバーロードされます。 Adds a line separator character (0x2028) that causes a line break without ending the paragraph.  
Public メソッドAdjusts the positions of content rectangle, inline and anchored objects by a specified amount.  
Public メソッドClears the current text layout, removing all text and formatting associated with individual text runs.  
Public メソッドCreates a copy of the current TextLayout instance.  
Public メソッドGets the InlineObject at the specified code point index.  
Public メソッドReturns the list of TextRect objects for the specified range of code points.  
Public メソッドMaps a character range to the corresponding code point range.  
Public メソッドMaps a code point range to the corresponding character range.  
Public メソッドDetermines the coordinates for all lines and glyph runs. Optionally calls RecalculateGlyphs prior to performing the layout.  
Public メソッド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.

 
Public メソッド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.  
Public メソッド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).

 
Public メソッド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.  
Public メソッド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.  
Public メソッド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.

 
トップ
参照

TextLayout クラス
GrapeCity.Documents.Text 名前空間