Message-ID: <1306173061.8785.1711660873148.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8784_471816255.1711660873148" ------=_Part_8784_471816255.1711660873148 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Font

Font

Description

=20

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

=20
C#
=20
 public sealed class Font
=20
=20
vb.net
=20
Public NotInheritable Class Font
=20
=20

Examples

=20
C#
=20

          ExcelApplication xla =3D new ExcelApplication();
          Workbook wb =3D xla.Create();
          SoftArtisans.OfficeWriter.ExcelWriter.Style styl =3D wb.CreateSty=
le();
          SoftArtisans.OfficeWriter.ExcelWriter.Font fnt =3D styl.Font;
        
=20
=20
vb.net
=20

          Dim xla As New ExcelApplication()
          Dim wb As Workbook =3D xla.Create()
          Dim styl As SoftArtisans.OfficeWriter.ExcelWriter.Style =3D wb.Cr=
eateStyle()
          Dim fnt As SoftArtisans.OfficeWriter.ExcelWriter.Font =3D styl.Fo=
nt
        
=20
=20

Properties

=20
=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 = =20 =20 =20 =20 =20 =20 =20 =20 =20 =20

Name

Description

Bold

Sets or returns whether text will be displayed i= n bold face.

Color=

Sets or returns the color of the font.

Italic

Sets or returns whether text will be italicized.=

Name

Sets or returns the name of the font (e.g., &quo= t;Arial"). The font must be available on the client's system for Excel= to use it; if it is not available, Excel will use a default font.

Scr= iptStyle

Sets or returns the vertical position of the fon= t in relation to other text.

Size

Sets or returns the font size, in points.

S= trikethrough

Sets or returns whether strikethrough formatting= will be applied to the font.

Under= line

Sets or returns the underline style for this fon= t.
=20

Nested Classes

=20
=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20

Name

Description

UnderlineS= tyle

An = UnderlineStyle value specifies an underline style for a font.

VerticalPosition

A vertical value specifies the vertical position= of a font in relation to other text.
------=_Part_8784_471816255.1711660873148--