Page tree

Versions Compared

Key

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

Excerpt

The Font object represents a font style that you can use when creating a reusable Style object, or when setting the style of a cell or set of cells. To set or return a Font object, use Style.Font.

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

          ExcelApplication xla = new ExcelApplication();
          Workbook wb = xla.Create();
          SoftArtisans.OfficeWriter.ExcelWriter.Style styl = wb.CreateStyle();
          SoftArtisans.OfficeWriter.ExcelWriter.Font fnt = styl.Font;
        
{code}
{code:vb.net
|title=vb.net
}

          Dim xla As New ExcelApplication()
          Dim wb As Workbook = xla.Create()
          Dim styl As SoftArtisans.OfficeWriter.ExcelWriter.Style = wb.CreateStyle()
          Dim fnt As SoftArtisans.OfficeWriter.ExcelWriter.Font = styl.Font
        
Signature
C#C#
Wiki Markup
{description}
{excerpt}The [Font|Font] object represents a font style that you can use when creating a reusable [Style|Style] object, or when setting the style of a cell or set of cells. To set or return a {{Font}} object, use [Style.Font|Style.Font].{excerpt}
{signature:C#}
 public sealed class Font
Signature
{signature}{signature:vb.net
vb.net
}
Public NotInheritable Class Font
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle
Properties

...

Name

...

Description

...

Bold

...

{code}

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

...

Color

|nopanel=true}|
|[Color|Font.Color]|{excerpt-include

...

:Font.Color

...

Italic

|nopanel=true}|
|[Italic|Font.Italic]|{excerpt-include

...

:Font.Italic

...

Name

|nopanel=true}|
|[Name|Font.Name]|{excerpt-include

...

:Font.Name

...

ScriptStyle

|nopanel=true}|
|[ScriptStyle|Font.ScriptStyle]|{excerpt-include

...

:Font.ScriptStyle

...

Size

|nopanel=true}|
|[Size|Font.Size]|{excerpt-include

...

:Font.Size

...

Strikethrough

|nopanel=true}|
|[Strikethrough|Font.Strikethrough]|{excerpt-include

...

:Font.Strikethrough

...

Underline

|nopanel=true}|
|[Underline|Font.Underline]|{excerpt-include

...

:Font.Underline

...

Classes

...

Name

...

Description

...

UnderlineStyle

...

VerticalPosition

...

|nopanel=true}|
{classes}
||Name||Description||
|[UnderlineStyle|Font.UnderlineStyle (no attachments)]|{excerpt-include:Font.UnderlineStyle|nopanel=true}|
|[VerticalPosition|Font.VerticalPosition]|{excerpt-include:Font.VerticalPosition|nopanel=true}|