/// <summary> /// Get a logical-to-visual index map (array) for the characters in the BiDi (paragraph or line) object. /// </summary> /// <returns>An array of <see cref="ProcessedLength"/>) indexes which will reflect the reordering of the characters</returns> public int[] GetLogicalMap() { var map = new int[ResultLength]; NativeMethods.ubidi_getLogicalMap(_biDi, map, out var errorCode); ExceptionFromErrorCode.ThrowIfError(errorCode, "Get logical map failed! " + errorCode); return(map); }