<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <linklocation="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
<seecref="T:Pango.LayoutLine"/>s are obtained by calling <seecref="M:Pango.Layout.GetLine(System.Int32)"/> and are only valid until the text, attributes, or settings of the parent <seecref="T:Pango.Layout"/> are modified.</remarks>
<summary>Converts from x offset to the byte index of the corresponding character within the text of the layout.</summary>
<paramname="x_pos"> the x offset (in <seecref="T:Pango.GlyphUnit"/>) from the left edge of the line.</param>
<paramname="index_"> location to store calculated byte offset for the grapheme in which the user clicked.</param>
<paramname="trailing"> location to store a integer indicating where in the grapheme the user clicked. It will either be zero, or the number of characters in the grapheme. 0 represents the trailing edge of the cluster.</param>
<returns>
<seelangword="false"/> if x_pos was outside the line, <seelangword="true"/> if inside</returns>
<remarks>If <paramrefname="x_pos"/> is outside the line, the start or end of the line will be stored at <paramrefname="index_"/>.</remarks>
<summary>Computes the logical and ink extents of a layout line.</summary>
<paramname="ink_rect"> rectangle used to store the extents of the glyph string as drawn or <seelangword="null"/> to indicate that the result is not needed.</param>
<paramname="logical_rect"> rectangle used to store the logical extents of the glyph string or <seelangword="null"/> to indicate that the result is not needed.</param>
<remarks>See the documentation for <seecref="M:Pango.Font.GetGlyphExtents()"/> for details about the interpretation of the rectangles.</remarks>
<summary>Computes the logical and ink extents of a layout line.</summary>
<paramname="ink_rect"> rectangle used to store the extents of the glyph string as drawn or <seelangword="null"/> to indicate that the result is not needed.</param>
<paramname="logical_rect"> rectangle used to store the logical extents of the glyph string or <seelangword="null"/> to indicate that the result is not needed.</param>
<remarks>See the documentation for <seecref="T:Pango.Font.GetGlyphExtents()"/> for details about the interpretation of the rectangles. The returned rectangles are in device units, as opposed to <seecref="T:Pango.LayoutLine.GetExtents()"/>, which returns the extents in <seecref="T:Pango.GlyphUnit"/>.</remarks>
<summary>Converts an index within a line to a X position.</summary>
<paramname="index_"> byte offset of a grapheme within the layout</param>
<paramname="trailing"> Indicates the edge of the grapheme to retrieve the position of. If <seelangword="true"/>, the trailing edge of the grapheme, if <seelangword="false"/>, the leading of the grapheme.</param>
<returns>the x_offset (in <seecref="T:Pango.GlyphUnit"/>)</returns>
<summary>Gets a list of visual ranges corresponding to a given logical range.</summary>
<paramname="start_index"> Start byte index of the logical range. If this value is less than the start index for the line, then the first range will extend all the way to the leading edge of the layout. Otherwise it will start at the leading edge of the first character.</param>
<paramname="end_index"> Ending byte index of the logical range. If this value is greater than the end index for the line, then the last range will extend all the way to the trailing edge of the layout. Otherwise, it will end at the trailing edge of the last character.</param>
<paramname="ranges"> location to store an array of ranges. The array will be of length 2*n_ranges, with each range starting at (*ranges)[2*n] and of width (*ranges)[2*n + 1] - (*ranges)[2*n]. This array must be freed with g_free(). The coordinates are relative to the layout and are in <seecref="T:Pango.GlyphUnit"/>.</param>
<remarks>This list is not necessarily minimal - there may be consecutive ranges which are adjacent. The ranges will be sorted from left to right. The ranges are with respect to the left edge of the entire layout, not with respect to the line.</remarks>