Calculates location of character at specified index in horizontal ruler index.

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

Syntax

C#
public int GetHRulerIndex(
	int charIndex
)
Visual Basic
Public Function GetHRulerIndex ( _
	charIndex As Integer _
) As Integer

Parameters

charIndex
Type: System..::..Int32
The index of the character to calculate its location.

Return Value

Horizontal ruler index of the character.

Remarks

This method calculates location of character at specified index in horizontal ruler index.

'Horizontal ruler index' here means how many small lines drawn on the horizontal ruler exist between left-end of the text area and the character at index specified by charIndex. This value is zero-based index.

See Also