Table of Contents

Interface ITextLayout

Namespace
PaintDotNet.DirectWrite
Assembly
PaintDotNet.Windows.dll

Represents a block of text after it has been fully analyzed and formatted.

This corresponds to the following DirectWrite interfaces: IDWriteTextLayout, IDWriteTextLayout1, IDWriteTextLayout2, IDWriteTextLayout3, IDWriteTextLayout4

public interface ITextLayout : ITextFormat, IObjectRef, IIsDisposed, IDisposable, IInternalImpl
Inherited Members
Extension Methods

Properties

MaxHeight
MaxWidth
Metrics
MinWidth
OverhangMetrics

Methods

Draw(object?, ITextRenderer, Point2Float)
GetCharacterSpacing(int, out TextRange)
GetClusterMetrics()
GetDrawingEffect(int, out TextRange)
GetFontCollection(int, out TextRange)
GetFontFamilyName(int, out TextRange)
GetFontSize(int, out TextRange)
GetFontStretch(int, out TextRange)
GetFontStyle(int, out TextRange)
GetFontWeight(int, out TextRange)
GetInlineObject(int, out TextRange)
GetLineMetrics()
GetLocaleName(int, out TextRange)
GetPairKerning(int, out TextRange)
GetStrikethrough(int, out TextRange)
GetTypography(int, out TextRange)
GetUnderline(int, out TextRange)
HitTestPoint(Point2Float)
HitTestTextPosition(int, bool)
HitTestTextRange(TextRange, Point2Float)
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 IInlineObject changes.

SetCharacterSpacing(TextRange, CharacterSpacing)
SetDrawingEffect(TextRange, IObjectRef?)
SetFontCollection(TextRange, IFontCollection)
SetFontFamilyName(TextRange, string)
SetFontSize(TextRange, float)
SetFontStretch(TextRange, FontStretch)
SetFontStyle(TextRange, FontStyle)
SetFontWeight(TextRange, FontWeight)
SetInlineObject(TextRange, IInlineObject?)
SetLocaleName(TextRange, string)
SetPairKerning(TextRange, bool)
SetStrikethrough(TextRange, bool)
SetTypography(TextRange, ITypography?)
SetUnderline(TextRange, bool)