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

Cell.Style

Description

=20

Sets or returns a Style object that = determines how the cell looks, including number format, font, orientation, = etc. Accessing the cell's style through Cell.Style will not affect the formatting of other cells with the sam= e global style.

=20
C#
=20
 public Style Style{ get; set; }
=20
=20
vb.net
=20
Public Property Style() As Style
=20
=20

Remarks

When a style is set - rather tha= n applied (see=20 Cell.= ApplyStyle) - all properties of the style will be assigned to the cell.= Properties not explicitly set on the new style default to Normal style val= ues.=20

Examples

=20
C#
=20

          //--- Get Style
          Style s =3D cellA1.Style;

          //--- Set Style
          cellA1.Style =3D s;
        
=20
=20
vb.net
=20

          '--- Get Style
          Dim s As Style =3D cellA1.Style

          '--- Set Style
          cellA1.Style =3D s
        
=20
------=_Part_8054_832609358.1711630582443--