[]
        
(Showing Draft Content)

FarPoint.Web.Spread.NamedStyleCollection

NamedStyleCollection Class

Represents a collection of custom styles (NamedStyle objects).

Inheritance
NamedStyleCollection
Namespace: FarPoint.Web.Spread
Assembly: FarPoint.Web.Spread.dll
Syntax
public class NamedStyleCollection : IList, ICollection, IEnumerable, ICanSerializeXml, ISerializeSupport
Public Class NamedStyleCollection
    Implements IList, ICollection, IEnumerable, ICanSerializeXml, ISerializeSupport

Constructors

Name Description
NamedStyleCollection()

Creates a custom style collection (NamedStyleCollection object).

Fields

Name Description
DefaultStyles

Represents the read-only collection of default styles.

Properties

Name Description
CanSerializeXml

Gets whether the object in its entirety can be rendered with XML without losing any information.

Count

Gets the number of styles (NamedStyle objects) in the collection.

IsFixedSize

Gets whether the collection has a fixed size. (This implementation always returns false.)

IsReadOnly

Gets whether the collection is read-only. (This implementation always returns false.)

IsSynchronized

Gets whether access to the collection is synchronized. (This implementation always returns false.)

this[int]

Gets or sets the style (NamedStyle object) at the specified index in the collection.

SyncRoot

Gets a collection (NamedStyleCollection object) that can be used to synchronize access.

Methods

Name Description
Add(NamedStyle)

Adds a style (NamedStyle object) to the collection.

Add(string, string)

Adds a style (NamedStyle object) to the collection as a child of the specified parent.

AddRange(NamedStyle[])

Adds an array of NamedStyle objects to the collection.

AddRange(ICollection)

Adds an array of styles (NamedStyle objects) to the collection.

Clear()

Removes all named styles from the collection.

Compose(object, StyleInfo)

Composes a style, using the current style and a specified NamedStyle object.

Contains(NamedStyle)

Determines whether the collection contains the specified style (NamedStyle object).

CopyTo(NamedStyle[], int)

Copies the styles in the collection to a specified array at a specified position.

CopyTo(Array, int)

Copies the styles in the collection to a specified array at a specified position.

Deserialize(XmlNodeReader)

Loads the collection of styles from XML.

Find(string)

Finds a style (NamedStyle object) in the collection with the specified name.

GetEnumerator()

Gets an IEnumerator object for enumerating through the NamedStyle objects in the collection.

IndexOf(NamedStyle)

Returns the index of the specified style in the collection.

Insert(int, NamedStyle)

Inserts a style into the collection at the specified index.

OnChanged(NamedStyleCollectionEventArgs)

Raises the Changed event.

Remove(NamedStyle)

Removes the specified named style from the collection.

RemoveAt(int)

Removes a named style (NamedStyle object) from the collection at the specified index.

Serialize(XmlTextWriter)

Saves the collection of styles to XML.

Events

Name Description
Changed

Occurs when a style is added, removed, or changed in the collection.