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

View Docs for Another
Version or Platform

Programmer's Reference > ExcelApplication API > Range > SetStyle

SetStyle Method



Signature:

public void SetStyle ( Style style )

Description:

Sets the style for every cell in this range. When a style is set - rather than applied (see Range.ApplyStyle ) - all previously assigned style properties, including font and number formatting, will be overwritten for all cells in the range.

Parameters:

style     The Style object to assign to the range.

Examples:

[csharp]
rng.SetStyle(styl);
[vbnet]
rng.SetStyl(styl)



Copyright 2006 © SoftArtisans, Inc. All Rights Reserved.