Table of Contents

Class TextLayout3

Namespace
SharpDX.DirectWrite
Assembly
SharpDX.Direct2D1.dll
[Guid("07DDCD52-020E-4DE8-AC33-6C953D83F92D")]
public class TextLayout3 : TextLayout2
Inheritance
TextLayout3
Inherited Members

Constructors

TextLayout3(nint)

public TextLayout3(nint nativePtr)

Parameters

nativePtr nint

Properties

LineSpacing

Gets or sets line spacing information.

public LineSpacing LineSpacing { get; set; }

Property Value

LineSpacing

Methods

GetLineMetrics(LineMetrics1[], int, out int)

Retrieves properties of each line.

public void GetLineMetrics(LineMetrics1[] lineMetrics, int maxLineCount, out int actualLineCount)

Parameters

lineMetrics LineMetrics1[]

The array to fill with line information.

maxLineCount int

The maximum size of the lineMetrics array.

actualLineCount int

The actual size of the lineMetrics array that is needed.

Remarks

If maxLineCount is not large enough E_NOT_SUFFICIENT_BUFFER, which is equivalent to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), is returned and actualLineCount is set to the number of lines needed.

InvalidateLayout()

Invalidates the layout, forcing layout to remeasure before calling the metrics or drawing functions. This is useful if the locality of a font changes, and layout should be redrawn, or if the size of a client implemented InlineObject changes.

public void InvalidateLayout()

Operators

explicit operator TextLayout3(nint)

public static explicit operator TextLayout3(nint nativePtr)

Parameters

nativePtr nint

Returns

TextLayout3