Description |
---|
Excerpt |
---|
ExcelWriter creates three style types: GlobalStyle, NamedStyle, and CellStyle. All three style types derive from the Style class, and |
Signature | C# | C# |
---|---|---|
Wiki Markup | ||
{description}
{excerpt}ExcelWriter creates three style types: [GlobalStyle|GlobalStyle], [NamedStyle|NamedStyle], and [CellStyle|CellStyle]. All three style types derive from the [Style|Style] class, and {{NamedStyle}} derives from {{GlobalStyle}}.{excerpt}
{signature:C#}
public sealed class NamedStyle : GlobalStyle
| ||
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public NotInheritable Class NamedStyle
Inherits GlobalStyle
|
Remarks |
---|
A style can be set or applied to cells, rows, columns, ranges, and areas. When a style is set , it is cloned and the object to which the style is assigned acquires all of that style's properties, including font proprties and number formatting. When a style is applied , only the differences between the new style and existing style properties (assigned through the ExcelWriter API or in Microsoft Excel) will take effect. For example, if the cell has a background color and the new style applied does not contain a background color, the cell's color will not be affected. However, if the new style includes a background color, it will replace the existing background color of the cell. The ExcelApplication object contains a collection of To create a To return a |
Example | |||
---|---|---|---|
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vbnet | vbnet | title |
Properties |
---|
...
Name
...
Description
...
...
{code} {example} {properties} ||Name||Description|| |[Name|NamedStyle.Name]|{excerpt-include:NamedStyle.Name |
...
|nopanel=true}|
|