Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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
C#
C#
 public sealed class Font
Signature
vb.net
vb.net
Public NotInheritable Class Font
Example
Code Block
csharp
csharp
titleC#

          ExcelApplication xla = new ExcelApplication();
          Workbook wb = xla.Create();
          SoftArtisans.OfficeWriter.ExcelWriter.Style styl = wb.CreateStyle();
          SoftArtisans.OfficeWriter.ExcelWriter.Font fnt = styl.Font;
        
Code Block
vb.net
vb.net
titlevb.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
        
Properties

Name

Description

Bold

Excerpt Include
EW8:Font.Bold
EW8:Font.Bold
nopaneltrue

Color

Excerpt Include
EW8:Font.Color
EW8:Font.Color
nopaneltrue

Italic

Excerpt Include
EW8:Font.Italic
EW8:Font.Italic
nopaneltrue

Name

Excerpt Include
EW8:Font.Name
EW8:Font.Name
nopaneltrue

ScriptStyle

Excerpt Include
EW8:Font.ScriptStyle
EW8:Font.ScriptStyle
nopaneltrue

Size

Excerpt Include
EW8:Font.Size
EW8:Font.Size
nopaneltrue

Strikethrough

Excerpt Include
EW8:Font.Strikethrough
EW8:Font.Strikethrough
nopaneltrue

Underline

Excerpt Include
EW8:Font.Underline
EW8:Font.Underline
nopaneltrue
Classes

Name

Description

UnderlineStyle

Excerpt Include
EW8:Font.UnderlineStyle
EW8:Font.UnderlineStyle
nopaneltrue

VerticalPosition

Excerpt Include
EW8:Font.VerticalPosition
EW8:Font.VerticalPosition
nopaneltrue