Gets length of the logical line which contains the specified char-index.

Namespace: Sgry.Azuki
Assembly: Azuki (in Azuki.dll) Version: 1.7.5.21597

Syntax

C#
public int GetLineLengthFromCharIndex(
	int charIndex,
	bool includesEolCode
)
Visual Basic
Public Function GetLineLengthFromCharIndex ( _
	charIndex As Integer, _
	includesEolCode As Boolean _
) As Integer

Parameters

charIndex
Type: System..::..Int32
Length of the line which contains this index will be retrieved.
includesEolCode
Type: System..::..Boolean
Whether EOL codes should be count or not.

Return Value

Length of the specified logical line in character count.

Remarks

This method retrieves length of logical line. Note that this method does not count EOL codes.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptionSpecified index is out of valid range.

See Also