ClassStyleCollection
Class
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
cs-api-definition
public class StyleCollection : INotifyCollectionChanged, IEnumerable
Inheritance: objectStyleCollection
Implements:
Constructors
StyleCollection(RadDocument)
Declaration
cs-api-definition
public StyleCollection(RadDocument document)
Parameters
document
Properties
this[string]
Declaration
cs-api-definition
public StyleDefinition this[string styleName] { get; }
Parameters
styleName
Property Value
Methods
Add(StyleDefinition)
Declaration
cs-api-definition
public void Add(StyleDefinition style)
Parameters
style
Clear()
Declaration
cs-api-definition
public void Clear()
GetValueOrNull(string, bool)
Get style from the repository by name.
Declaration
cs-api-definition
public StyleDefinition GetValueOrNull(string styleName, bool autoAddBuiltInStyles = true)
Parameters
styleName
Name of the style.
autoAddBuiltInStyles
True to automatically add built in styles into the repository.
Returns
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Declaration
cs-api-definition
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
Parameters
args
Remove(StyleDefinition)
Declaration
cs-api-definition
public void Remove(StyleDefinition style)
Parameters
style
Events
CollectionChanged
Declaration
cs-api-definition
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Value
Implements