PeachDrawing.Text
PeachDrawing.Text.Unicode.Bidi
Bidi.Analyze(string, BaseDirection, IReadOnlyList<EmbeddingSpan>) Method
Resolves the embedding levels of one paragraph.
public static PeachDrawing.Text.Unicode.BidiAnalysis Analyze(string text, PeachDrawing.Text.Unicode.BaseDirection direction, System.Collections.Generic.IReadOnlyList<PeachDrawing.Text.Unicode.EmbeddingSpan>? spans=null);
Parameters
text System.String
The paragraph’s text.
direction BaseDirection
The direction the paragraph starts in, or Auto to detect it.
spans System.Collections.Generic.IReadOnlyList<EmbeddingSpan>
Embeddings that apply to stretches of text without any control character being in it, or null for none.
Returns
BidiAnalysis
One level for every UTF-16 code unit of text, and the paragraph level.