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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.