The CharacterRun class allows you to set a font on a specified range of characters within a ChartText object or a cell. To return a CharacterRun object, use Cell.GetCharacters() or ChartText.GetCharacters().
CharacterRun
public sealed class CharacterRun
Public NotInheritable Class CharacterRun
ExcelApplication xla = new ExcelApplication(); Workbook wb = xla.Create(); Worksheet ws = wb.Worksheets[0]; Cell cellA1 = ws.Cells["A1"]; cellA1.Value = "Test"; CharacterRun charRun = cellA1.GetCharacters(0);
Dim xla As New ExcelApplication() Dim wb As Workbook = xla.Create() Dim ws As Worksheet = wb.Worksheets(0) Dim cellA1 As Cell = ws.Cells("A1") cellA1.Value = "Test" Dim charRun As CharacterRun = cellA1.GetCharacters(0)
Name
Description
Font
Length
StartIndex
Clear()