[]
Implements text rendering on the base of DirectWrite API.
public class C1DXTextLayout : C1TextLayout, IDisposable
Public Class C1DXTextLayout
Inherits C1TextLayout
Implements IDisposable
| Name | Description |
|---|---|
| C1DXTextLayout(IC1DXTextLayoutOwner) | Initializes a new instance of the C1DXTextLayout class. |
| Name | Description |
|---|---|
| Owner | Gets the IC1DXTextLayoutOwner owning this C1DXTextLayout object. |
| Name | Description |
|---|---|
| BuildCharMapWhenDrawGlyphRun | Gets a value indicating whether the arrays if characters' widths should be build and passed to the DrawGlyphRun(...) method. |
| SystemFontCollection | Gets the C1.Util.DX.DirectWrite.FontCollection. |
| UseTransformForSidewaysText | Gets a value indicating whether the C1DXTextLayout should NOT apply transform to the graphics when draw a vertical text using the font with NOT rotated glyphs. For example, "japan" glyphs are NOT rotated when text is drawn in vertical direction from top to bottom. Currently this property overriden in the C1.Win.Document.Util.C1GdiGraphics.C1GdiTextLayout because if StringFormatFlags.DirectionVertical is specified in StringFormat then rotation transform should NOT be applied for WinForms Graphics object. |
| Name | Description |
|---|---|
| BuildSelection(IC1TextSelectionBuilder) | Builds text selection. |
| Clear() | Clears content of the C1.Document.Util.C1TextLayout object. |
| ClearRanges() | Removes all elements and dispose in the ranges. |
| CreateTextRange(string, IC1TextFormat) | Creates C1.Document.Util.C1TextLayoutRange object. |
| DWFontStyleToFontStyle(FontStyle) | Converts C1.Util.DX.DirectWrite.FontStyle to C1.Document.C1FontStyle value. |
| DWFontWeightToFontWeight(FontWeight) | Converts C1.Util.DX.DirectWrite.FontWeight to C1.Document.C1FontWeight value. |
| Dispose(bool) | Releases the unmanaged resources used by the C1.Document.Util.C1TextLayout. |
| Draw(C1Graphics, double, double) | Draws current C1.Document.Util.C1TextLayout on specified C1.Document.Util.C1Graphics. |
| DrawLine(C1Graphics, double, double, double, double, Color, double, DashStyle) | Draws a line. |
| FillRectangle(C1Graphics, C1Brush, Rect) | Fill rectangle with specified C1.Document.C1Brush. |
| FillRectangle(C1Graphics, Color, Rect) | Fill rectangle with specified color. |
| FontStyleToDWFontStyle(C1FontStyle) | Converts C1.Document.C1FontStyle to C1.Util.DX.DirectWrite.FontStyle value. |
| FontWeightToDWFontWeight(C1FontWeight) | Converts C1.Document.C1FontWeight to C1.Util.DX.DirectWrite.FontWeight value. |
| GetCaretCoords(int, bool) | Use this function to get the pixel location relative to the top-left of the layout box given the text position and the logical side of the position. |
| GetChar(int) | Gets the char at specified text position. |
| GetSplitPosition(double, int, out SplitPositionInfo) | Determines position where text can be split. |
| GetString(int, int) | Gets the string containg part of the text of this C1DXTextLayout object. |
| GetText() | Get the text of this text layout as a single string. |
| HitTest(double, double) | Use this function passing in a specific pixel location relative to the top-left location of the layout box and obtains the information about the correspondent hit-test metrics of the text string where the hit-test has occurred. |
| MeasureAutoSize() | Measures the text size. |
| MeasureLayout() | Measures full text layout, after calling this method you can use all methods of C1.Document.Util.C1TextLayout, like HitTest(), Draw() etc. |