Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

...

Wiki Markup
{description}
{excerpt}The [CharacterRun|CharacterRun] class allows you to set a font on a specified range of characters within a [ChartText|ChartText] object or a cell. To return a {{CharacterRun}} object, use [Cell.GetCharacters()|Cell.GetCharacters] or [ChartText.GetCharacters()

...

{signature}
{example}{code:csharp|title=C#}

          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.net
|title=vb.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)
        
Signature
C#C#
|ChartText.GetCharacters].{excerpt}
{signature:C#}
 public sealed class CharacterRun
Signature
{signature}{signature:vb.net
vb.net
}
Public NotInheritable Class CharacterRun
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle
Properties

...

Name

...

Description

...

Font

...

{code}

{example}
{properties}
||Name||Description||
|[Font|CharacterRun.Font]|{excerpt-include:CharacterRun.Font

...

Length

|nopanel=true}|
|[Length|CharacterRun.Length]|{excerpt-include

...

:CharacterRun.Length

...

StartIndex

|nopanel=true}|
|[StartIndex|CharacterRun.StartIndex]|{excerpt-include

...

:CharacterRun.StartIndex

...

Methods

...

Name

...

Description

...

Clear()

...

|nopanel=true}|
{methods}
||Name||Description||
|[Clear()|CharacterRun.Clear()

...

]|{excerpt-include:CharacterRun.Clear()

...

|nopanel

...

=true}|
{scrollbar}