/// <summary> /// Get one run's logical start, length, and directionality, which can be 0 for LTR or 1 for RTL. /// </summary> /// <param name="runIndex">The number of the run in visual order, in the range [0..<see cref="CountRuns"/>-1]</param> /// <param name="logicalStart">Will receive the first logical character index in the text</param> /// <param name="runLength">Will receive the number of characters (at least one) in the run</param> /// <returns>The directionality of the run, never UBIDI_MIXED, never UBIDI_NEUTRAL</returns> public BiDiDirection GetVisualRun(int runIndex, out int logicalStart, out int runLength) { return(NativeMethods.ubidi_getVisualRun(_biDi, runIndex, out logicalStart, out runLength)); }