TextBox.GetLineIndexFromCharacterIndex(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the zero-based line index for the line that contains the specified character index.
public:
int GetLineIndexFromCharacterIndex(int charIndex);
public int GetLineIndexFromCharacterIndex (int charIndex);
member this.GetLineIndexFromCharacterIndex : int -> int
Public Function GetLineIndexFromCharacterIndex (charIndex As Integer) As Integer
Parameters
- charIndex
- Int32
The zero-based character index for which to retrieve the associated line index.
Returns
The zero-based index for the line that contains the specified character index.
Applies to
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.