Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets or returns a Style object that determines how cells in the row look, including number format, font, orientation, etc. Accessing this style will not affect the formatting of other cells with the same global style.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public Style Style{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property Style() As Style</p>Style
Remarks

When a style is set on a column - rather than applied (see ApplyStyle) - all properties of the style take effect on the cells in that row. Properties not explicitly set on the new style default to Normal style values.

Example
Code Block
csharp
csharp
titleC#
            //--- Get Style
          Style rowStyle = rowProps.Style;

          //--- Set Style
          rowProps.Style = styl;
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Get Style
          Dim rowStyle As Style = rowProps.Style

          '--- Set Style
          rowProps.Style = styl