Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

Applies a style to the area. When a style is applied - rather than set (see Area.SetStyle(Style)

...

)

...

-

...

only

...

the

...

differences

...

between

...

the

...

new

...

style

...

and

...

style

...

properties

...

previously

...

assigned

...

to

...

the

...

area

...

(through

...

the

...

ExcelWriter

...

API

...

or

...

in

...

Microsoft

...

Excel

...

)

...

will

...

take

...

effect.

...

For

...

example,

...

if

...

the

...

area

...

has

...

a

...

background

...

color

...

and

...

the

...

new

...

style

...

applied

...

does

...

not

...

contain

...

a

...

background

...

color,

...

the

...

area's

...

color

...

will

...

not

...

be

...

affected.

...

However,

...

if

...

the

...

new

...

style

...

includes

...

background

...

color,

...

it

...

will

...

replace

...

the

...

existing

...

background

...

color

...

of

...

the

...

area.

...

Signature
C#
C#
 public void ApplyStyle(Style style)
{signature}{signature:
}
Signature
vb.net
vb.net
Public Sub ApplyStyle(ByVal style As Style)
{signature}
{parameters}
{param:style}A [Style|Style] object representing the style to apply to the cell.{param}
{example}{code:csharp|title=C#}
Parameters
Param
style
style

A Style object representing the style to apply to the cell.

Example
Code Block
csharp
csharp
titleC#

a.ApplyStyle(oStyle);
{code} {code:vbnet|title=
Code Block
vbnet
vbnet
titlevb.net
}

a.ApplyStyle(oStyle)
{code} {example} {scrollbar}
Scrollbar