[]
IDWriteTextAnalysisSink
[Guid("5810cd44-0ca0-4701-b3fa-bec5182ae4f6")]
[Shadow(typeof(TextAnalysisSinkShadow))]
public interface ITextAnalysisSink : ICallbackable, IDisposable
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)
textPosition
intThe starting position from which to report.
textLength
intThe number of UTF16 units of the reported range.
explicitLevel
byteThe 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
byteThe final implicit level considering the explicit level and characters' natural directionality, after all Bidi rules have been applied.
Sets line-break opportunities for each character, starting from the specified position.
void SetLineBreakpoints(int textPosition, int textLength, LineBreakpoint[] lineBreakpoints)
textPosition
intThe starting text position from which to report.
textLength
intThe 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.
Sets the number substitution on the text range affected by the text analysis.
void SetNumberSubstitution(int textPosition, int textLength, NumberSubstitution numberSubstitution)
textPosition
intThe starting position from which to report.
textLength
intThe number of UTF16 units of the reported range.
numberSubstitution
NumberSubstitutionAn object that holds the appropriate digits and numeric punctuation for a given locale. Use CreateNumberSubstitution(NumberSubstitutionMethod, string, Bool) to create this object.
Reports script analysis for the specified text range.
void SetScriptAnalysis(int textPosition, int textLength, ScriptAnalysis scriptAnalysis)
textPosition
intThe starting position from which to report.
textLength
intThe number of UTF16 units of the reported range.
scriptAnalysis
ScriptAnalysisA 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.