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 > Cell > Style

Style Property


C# Signature:

VB.NET Signature:


Description:

Sets or returns a Style object that determines how the cell looks, including number format, font, orientation, etc. Accessing the cell's style through Cell.Style will not affect the formatting of other cells with the same global style.

When a style is set - rather than applied (see Cell.ApplyStyle) - all properties of the style will be assigned to the cell. Properties not explicitly set on the new style default to Normal style values.

Style is a read / write property.



Examples:

[csharp]
// Get Style
Style s = cellA1.Style;

// Set Style
cellA1.Style = s;
[vbnet]
' Get Style
Dim s As Style = cellA1.Style

' Set Style
cellA1.Style = s


Getter

Signature:

public Style Style

Returns:

Style A Style object assigned to this cell.

Setter

Signature:

public void Style Style style

Type:

Style



Copyright 2005 © SoftArtisans, Inc. All Rights Reserved.