Returns an ICharacters interface that represents a subsequence of characters within the specified Characters object. The subsequence starts at a specified character position.
[C#] In C#, this property is the indexer for the ICharacters class.
[Visual Basic] Default Property ReadOnly Item( _ ByVal Start As Integer _ ) As ICharacters [C#] ICharacters this[ int Start ] { get; } [C++] __property ICharacters* get_Item( int Start ); [JScript] returnValue = ICharactersObject.Item( Start ); -or- returnValue = ICharactersObject( Start );
[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.
This example deletes the substring starting from index 10 to the end of the string from cell B10.
[C#]
book.Worksheets[1].Range["B10"].Characters[10].Delete();
[Visual Basic]
book.Worksheets(1).Range("B10").Characters(10).Delete()
[C++]
IRange* range = book->Worksheets->Item[1]->Range->Item[S"B10"];
range->Characters->Item[10]->Delete();
ICharacters Interface | NativeExcel Namespace | ICharacters.Item Overload List | IRange.Characters Property | ICharacters.Count Property