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