Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

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()

...

.

Signature
C#
C#

<p> public sealed class CharacterRun
{signature}{signature:CharacterRun</p>
} Public
Signature
vb.net
vb.net

<p>Public NotInheritable Class CharacterRun
{signature}
{example}{code:csharp|title=C#}CharacterRun</p>
Example
Code Block
csharp
csharp
titleC#


          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);
        
{code} {code:vb|title=
Code Block
vb
vb
titlevb.net
}


          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)
        
{code} {example} {properties} ||Name||Description|| |[Font|CharacterRun.Font]|{excerpt-include:CharacterRun.Font|nopanel=true}| |[Length|CharacterRun.Length]|{excerpt-include:CharacterRun.Length|nopanel=true}| |[StartIndex|CharacterRun.StartIndex]|{excerpt-include:CharacterRun.StartIndex|nopanel=true}| {methods} ||Name||Description|| |[Clear()|CharacterRun.Clear()]|{excerpt-include:CharacterRun.Clear()|nopanel=true}| {scrollbar}
Properties

Name

Description

Font

Excerpt Include
CharacterRun.Font
CharacterRun.Font
nopaneltrue

Length

Excerpt Include
CharacterRun.Length
CharacterRun.Length
nopaneltrue

StartIndex

Excerpt Include
CharacterRun.StartIndex
CharacterRun.StartIndex
nopaneltrue
Methods

Name

Description

Clear()

Excerpt Include
CharacterRun.Clear()
CharacterRun.Clear()
nopaneltrue
Scrollbar