Add Method (IStyleCollection)

Spread.Services Documentation
Add Method (IStyleCollection)
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: C#
C#

GrapeCity.Documents.Spread Namespace > IStyleCollection Interface : Add Method

The new IStyle name.
An IRange object that refers to a cell that's used as the basis for the new style. If this argument is omitted, the newly created style is based on the Normal style.
Creates a new IStyle and adds it to the list of styles that are available for the current IWorkbook.
Syntax

- C#

    IStyle Add(
       System.string name,
       IRange baseOn
    )

#### Parameters

name
  The new IStyle name.
baseOn
  An IRange object that refers to a cell that's used as the basis for the new style. If this argument is omitted, the newly created style is based on the Normal style.

#### Return Value

The new IStyle
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

#### Reference

IStyleCollection Interface
IStyleCollection Members

Copyright © GrapeCity, inc. All rights reserved.

Send Feedback