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
intThe current text position.
leadingSpacing
floatThe spacing before each character, in reading order.
trailingSpacing
floatThe spacing after each character, in reading order.
minimumAdvanceWidth
floatThe minimum advance of each character, to prevent characters from becoming too thin or zero-width. This must be zero or greater.
textRange
TextRangeThe 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
intThe current text position.
isPairKerningEnabled
RawBoolThe flag that indicates whether text is pair-kerned.
textRange
TextRangeThe 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
floatThe spacing before each character, in reading order.
trailingSpacing
floatThe spacing after each character, in reading order.
minimumAdvanceWidth
floatThe minimum advance of each character, to prevent characters from becoming too thin or zero-width. This must be zero or greater.
textRange
TextRangeText 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
RawBoolThe flag that indicates whether text is pair-kerned.
textRange
TextRangeThe text range to which the change applies.
Operators
explicit operator TextLayout1(nint)
public static explicit operator TextLayout1(nint nativePtr)
Parameters
nativePtr
nint