Page tree

Versions Compared

Key

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

Excerpt

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 same global style.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Sets or returns a [Style|Style] object that determines how the cell looks, including number format, font, orientation, etc. Accessing the cell's style through  [Cell.Style|Cell.Style] will not affect the formatting of other cells with the same global style.{excerpt}
{signature:C#}
 public Style Style{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property Style() As Style
Remarks

When a style is set - rather than applied (see 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 values.

{signature}
{remarks}When a style is set \- rather than applied \(see  [Cell.ApplyStyle|Cell.ApplyStyle(Style)]\) \-  all properties of the style will be assigned to the cell.  Properties not explicitly set on the new style default to Normal style values.

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

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

          //--- Set Style
          cellA1.Style = s;
        
{code}
{code:vb.net
|title=vb.net
}

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

          '--- Set Style
          cellA1.Style = s
        
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle

...

{code}

{example}
{scrollbar}