Table of Contents

Class TextLayout1

Namespace
SharpDX.DirectWrite
Assembly
SharpDX.Direct2D1.dll
[Guid("9064D822-80A7-465C-A986-DF65F78B8FEB")]
public class TextLayout1 : TextLayout
Inheritance
TextLayout1
Derived
Inherited Members

Constructors

TextLayout1(nint)

public TextLayout1(nint nativePtr)

Parameters

nativePtr nint

Methods

GetCharacterSpacing(int, out float, out float, out float, out TextRange)

Gets the spacing between characters.

public void GetCharacterSpacing(int currentPosition, out float leadingSpacing, out float trailingSpacing, out float minimumAdvanceWidth, out TextRange textRange)

Parameters

currentPosition int

The current text position.

leadingSpacing float

The spacing before each character, in reading order.

trailingSpacing float

The spacing after each character, in reading order.

minimumAdvanceWidth float

The minimum advance of each character, to prevent characters from becoming too thin or zero-width. This must be zero or greater.

textRange TextRange

The position range of the current format.

GetPairKerning(int, out RawBool, out TextRange)

Gets whether or not pair-kerning is enabled at given position.

public void GetPairKerning(int currentPosition, out RawBool isPairKerningEnabled, out TextRange textRange)

Parameters

currentPosition int

The current text position.

isPairKerningEnabled RawBool

The flag that indicates whether text is pair-kerned.

textRange TextRange

The position range of the current format.

SetCharacterSpacing(float, float, float, TextRange)

Sets the spacing between characters.

public void SetCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, TextRange textRange)

Parameters

leadingSpacing float

The spacing before each character, in reading order.

trailingSpacing float

The spacing after each character, in reading order.

minimumAdvanceWidth float

The minimum advance of each character, to prevent characters from becoming too thin or zero-width. This must be zero or greater.

textRange TextRange

Text range to which this change applies.

SetPairKerning(RawBool, TextRange)

Enables or disables pair-kerning on a given text range.

public void SetPairKerning(RawBool isPairKerningEnabled, TextRange textRange)

Parameters

isPairKerningEnabled RawBool

The flag that indicates whether text is pair-kerned.

textRange TextRange

The text range to which the change applies.

Operators

explicit operator TextLayout1(nint)

public static explicit operator TextLayout1(nint nativePtr)

Parameters

nativePtr nint

Returns

TextLayout1