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 > Area > SetStyle

SetStyle Method



Signature:

public void SetStyle ( Style style )

Description:

Sets or returns a style for the area. When a style is set - rather than applied (see Area.ApplyStyle) - the area to which the style is assigned acquires all of that style's properties, including font properties and number formatting. Setting a style overwrites any pre-existing formatting on the area.

Parameters:

style     The Style object to assign to the area.

Examples:

[csharp]
a.SetStyle(styl);
[vbnet]
a.SetStyle(styl)



Copyright 2005 © SoftArtisans, Inc. All Rights Reserved.