Forums     Knowledge Base     OfficeWriter Online     
 
This documentation is for
OfficeWriter v3.0.4
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > ExcelApplication API > ColumnProperties > ApplyStyle

ApplyStyle Method



Signature:

public void ApplyStyle ( Style style )

Description:

Applies a style to the column. When a style is applied - rather than set (see ColumnProperties.Style ) - only the differences between the new style and style properties previously assigned to the column (through the ExcelWriter API or in Microsoft Excel) will take effect. For example, if a cell in the column has a background color and the new style applied does not contain a background color, the cell's color will not be affected.

Parameters:

style     The Style object to apply to the row.

Examples:

[csharp]
colProps.ApplyStyle(styl);
[vbnet]
colProps.ApplyStyle(styl)



Copyright 2005 © SoftArtisans, Inc. All Rights Reserved.