[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.GetCharacterIndexFromLineIndex

GetCharacterIndexFromLineIndex Method

GetCharacterIndexFromLineIndex(int)

Returns the zero-based character index for the first character in the specified line.

Declaration
public int GetCharacterIndexFromLineIndex(int lineIndex)
Public Function GetCharacterIndexFromLineIndex(lineIndex As Integer) As Integer
Parameters
Type Name Description
int lineIndex

The zero-based index of the line to retrieve the initial character index for.

Returns
Type Description
int

The zero-based index for the first character in the specified line.

Exceptions
Type Condition
ArgumentOutOfRangeException

If lineIndex is less than 0 or is greater than or equals to line count.