/// <summary> /// Get a paragraph, given the index of this paragraph. /// </summary> /// <param name="paraIndex">The number of the paragraph, in the range [0..<see cref="CountParagraphs"/>-1]</param> /// <param name="paraStart">Will receive the index of the first character of the paragraph in the text</param> /// <param name="paraLimit">Will receive the limit of the paragraph</param> /// <param name="paraLevel">Will receive the level of the paragraph</param> public void GetParagraphByIndex(int paraIndex, out int paraStart, out int paraLimit, out byte paraLevel) { NativeMethods.ubidi_getParagraphByIndex(_biDi, paraIndex, out paraStart, out paraLimit, out paraLevel, out var errorCode); ExceptionFromErrorCode.ThrowIfError(errorCode, "Paragraph retrieval failed! " + errorCode); }