Programmer's Reference > ExcelApplication API > Range > SetStyle
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.
Range.ApplyStyle
[csharp]
rng.SetStyle(styl);
[vbnet]
rng.SetStyl(styl)
Copyright 2006 © SoftArtisans, Inc. All Rights Reserved.