Represents characters in an object that contains text. It lets you modify and format any sequence of characters contained in the full text string.
For a list of all members of this type, see ICharacters Members.
[Visual Basic] Public Interface ICharacters [C#] public interface ICharacters [C++] public __gc __interface ICharacters [JScript] public interface ICharacters
Use the IRange.Characters property to return an ICharacters interface.
The following example adds text to cell B2 and then makes the second word bold.
[C#]
IRange cell = book.Worksheets[1].Range["B2"];
cell.Value = "text value";
cell.Characters[6,5].Font.Bold = true;
[Visual Basic]
Dim cell As IRange = book.Worksheets(1).Range("B2")
cell.Value = "text value"
cell.Characters(6, 5).Font.Bold = True
[C++]
IRange* cell = book->Worksheets->Item[1]->Range->Item[S"B2"];
cell->Value = S"text value";
cell->Characters->Item[6, 5]->Font->Bold = true;
Namespace: NativeExcel
Assembly: NativeExcel (in NativeExcel.dll)
ICharacters Members | NativeExcel Namespace | IRange.Characters Property | ICharacters.Font Property