示例#1
0
 /// <summary>
 /// Get the last logical line for a given physical (visible) line.
 /// </summary>
 /// <param name="physicalLine">The physical line number.</param>
 /// <returns>The logical line number.</returns>
 /// <remarks>
 ///     <para>
 /// A logical line is a line in the document, whereas a physical line is line that
 /// is rendered in the text editor. A physical line can contain multiple logical lines,
 /// for example when they are collapsed (see "folding").
 /// </para>
 ///     <para>
 /// The logical line numbers correspond with the line numbers drawn in the line-number margin.
 /// (Except that logical lines are 0-based and line-numbers drawn are 1-based.)
 /// </para>
 /// </remarks>
 public int GetLastLogicalLine(int physicalLine)
 {
     return(_lineTrackingStrategy.GetLastLogicalLine(physicalLine));
 }
 /// <summary>
 /// Get the last logical line for a given visible line.
 /// </summary>
 /// <param name="visibleLineNumber">The line number (visible lines).</param>
 /// <returns>The logical line number.</returns>
 /// <remarks>
 /// <para>
 /// A visible line can contain several logical lines when it contains a (folded)
 /// folding. This method returns the <b>last</b> logical line that belongs to the
 /// visible line.
 /// </para>
 /// </remarks>
 public int GetLastLogicalLine(int visibleLineNumber)
 {
     return(lineTrackingStrategy.GetLastLogicalLine(visibleLineNumber));
 }