NShape Reference
StyleCollection<TStyle> Generic Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape >

NShape Reference
StyleCollection<TStyle> Generic Class

Previous pageReturn to chapter overviewNext page

A collection of objects implementing the IStyle interface sorted by style names.

Syntax

public abstract class StyleCollection<TStyle> where TStyle : classIStyle

Description

A collection of objects implementing the IStyle interface sorted by style names.

Each element of the collection is a style pair consisting of the style itself and a preview style used for drawing Tool previews.

Public Properties

Name

Description

Indexer

Provides access to the collection's elements by index or name.

Count

Returns the number of elements in the collection.

Public Methods

Name

Description

Constructor

 

Add

Adds the given style pair to the collection.

Clear

Disposes and deletes all elements in the collection.

Contains

Returns true if the given style or a style with the given name is in the style collection.

ContainsPreviewStyle

Returns true if the collection contains a preview style associated with the given style / style name or if the given style / style name matches a preview style contained in the collection.

GetPreviewStyle

Returns the preview style associated with the given style / style name.

IndexOf

Returns the element index of the given style / preview style.

IsStandardStyle

Returns true if the given style / style name has matches one of the StandardStyleNames.

Remove

Removes the given style and its associated preview style from the collection.

RemoveAt

Removes the style at the given element index.

SetPreviewStyle

Associates the given preview style with the given style.

Protected Methods

Name

Description

SetStyle

Associates the given preview style with the given style.

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape