NativeExcel2 for .Net Developer's Reference

ICharacters Interface

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]
PublicInterfaceICharacters
[C#]
publicinterfaceICharacters
[C++]
public__gc__interfaceICharacters
[JScript]
publicinterfaceICharacters

Remarks

Use the IRange.Characters property to return an ICharacters interface.

Example

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;
[VisualBasic]
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;

Requirements

Namespace: NativeExcel

Assembly: NativeExcel (in NativeExcel.dll)

See Also

ICharacters Members | NativeExcel Namespace | IRange.Characters Property | ICharacters.Font Property