<< Click to Display Table of Contents >> NShape Reference
|
A collection of objects implementing the IStyle interface sorted by style names.
public abstract class StyleCollection<TStyle> where TStyle : class, IStyle |
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.
Name |
Description |
---|---|
Indexer |
Provides access to the collection's elements by index or name. |
Count |
Returns the number of elements in the collection. |
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. |
Name |
Description |
---|---|
SetStyle |
Associates the given preview style with the given style. |
Namespace: Dataweb.NShape
Assembly: Dataweb.NShape