Click or drag to resize

AbstractRangeGetCharacters Method (Int32, Int32)

Returns a FormattedCharacterRange object that represents a range of characters within the cell text. The range starts at a specified character position and has a specified length. Not supported in ODS and XLS.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 43.0.35.1020
Syntax
public FormattedCharacterRange GetCharacters(
	int startIndex,
	int length
)

Parameters

startIndex
Type: SystemInt32
The zero-based starting character position.
length
Type: SystemInt32
The number of characters.

Return Value

Type: FormattedCharacterRange
New FormattedCharacterRange object.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionArgument startIndex is less than zero or is equal to or greater than 32767.
ArgumentOutOfRangeExceptionArgument length is equal to or less than zero or is greater than 32767.
Remarks
This method only works on cell with string value.
See Also