Calculates the position of char, its line and range within line.
Returns false if char is not placed within object (its index >= than Text.Length for example).
charIndexInRange and rangeIndex may contain -1 on exit if char corresponds to
an "empty" place (on CR or LF character at end of line for example).
Namespace:
C1.C1PrintDocument.UtilAssembly: C1.C1PrintDocument.Classic.2 (in C1.C1PrintDocument.Classic.2.dll)
Syntax
C# |
---|
public bool GetCharPosition( int charIndex, out int lineIndex, out int rangeIndex, out int charIndexInLine, out int charIndexInRange ) |
Visual Basic (Declaration) |
---|
Public Function GetCharPosition ( _ charIndex As Integer, _ <OutAttribute> ByRef lineIndex As Integer, _ <OutAttribute> ByRef rangeIndex As Integer, _ <OutAttribute> ByRef charIndexInLine As Integer, _ <OutAttribute> ByRef charIndexInRange As Integer _ ) As Boolean |
Parameters
- charIndex
- Type: System..::.Int32
- lineIndex
- Type:
System..::.Int32%
- rangeIndex
- Type:
System..::.Int32%
- charIndexInLine
- Type:
System..::.Int32%
- charIndexInRange
- Type:
System..::.Int32%