[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.ITextAnalysisSink

Interface ITextAnalysisSink

Namespace
GrapeCity.Documents.DX.DirectWrite
Assembly
GcDocs.DX.Windows.dll

IDWriteTextAnalysisSink

[Guid("5810cd44-0ca0-4701-b3fa-bec5182ae4f6")]
[Shadow(typeof(TextAnalysisSinkShadow))]
public interface ITextAnalysisSink : ICallbackable, IDisposable
Inherited Members
System.IDisposable.Dispose()

Methods

SetBidiLevel(int, int, byte, byte)

Sets a bidirectional level on the range, which is called once per run change (either explicit or resolved implicit).

void SetBidiLevel(int textPosition, int textLength, byte explicitLevel, byte resolvedLevel)

Parameters

textPosition int

The starting position from which to report.

textLength int

The number of UTF16 units of the reported range.

explicitLevel byte

The explicit level from the paragraph reading direction and any embedded control codes RLE/RLO/LRE/LRO/PDF, which is determined before any additional rules.

resolvedLevel byte

The final implicit level considering the explicit level and characters' natural directionality, after all Bidi rules have been applied.

SetLineBreakpoints(int, int, LineBreakpoint[])

Sets line-break opportunities for each character, starting from the specified position.

void SetLineBreakpoints(int textPosition, int textLength, LineBreakpoint[] lineBreakpoints)

Parameters

textPosition int

The starting text position from which to report.

textLength int

The number of UTF16 units of the reported range.

lineBreakpoints LineBreakpoint[]

A reference to a structure that contains breaking conditions set for each character from the starting position to the end of the specified range.

SetNumberSubstitution(int, int, NumberSubstitution)

Sets the number substitution on the text range affected by the text analysis.

void SetNumberSubstitution(int textPosition, int textLength, NumberSubstitution numberSubstitution)

Parameters

textPosition int

The starting position from which to report.

textLength int

The number of UTF16 units of the reported range.

numberSubstitution NumberSubstitution

An object that holds the appropriate digits and numeric punctuation for a given locale. Use CreateNumberSubstitution(NumberSubstitutionMethod, string, Bool) to create this object.

SetScriptAnalysis(int, int, ScriptAnalysis)

Reports script analysis for the specified text range.

void SetScriptAnalysis(int textPosition, int textLength, ScriptAnalysis scriptAnalysis)

Parameters

textPosition int

The starting position from which to report.

textLength int

The number of UTF16 units of the reported range.

scriptAnalysis ScriptAnalysis

A reference to a structure that contains a zero-based index representation of a writing system script and a value indicating whether additional shaping of text is required.