Class StyleCollection
Inheritance
System.Object
StyleCollection
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class StyleCollection : Object, INotifyCollectionChanged, IEnumerable<StyleDefinition>, IEnumerable
Constructors
StyleCollection(RadDocument)
Properties
Count
Declaration
public int Count { get; }
Property Value
System.Int32
|
Document
Item[String]
Declaration
public StyleDefinition this[string styleName] { get; }
Parameters
System.String
styleName
|
Property Value
StyleDefinition
|
Methods
Add(StyleDefinition)
Clear()
Declaration
public void Clear()
GetValueOrNull(String, Boolean)
Get style from the repository by name.
Declaration
public StyleDefinition GetValueOrNull(string styleName, bool autoAddBuiltInStyles = true)
Parameters
System.String
styleName
Name of the style. |
System.Boolean
autoAddBuiltInStyles
True to automatically add built in styles into the repository. |
Returns
StyleDefinition
|
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Declaration
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
Parameters
System.Collections.Specialized.NotifyCollectionChangedEventArgs
args
|
Remove(String)
Declaration
public void Remove(string name)
Parameters
System.String
name
|
Remove(StyleDefinition)
Events
CollectionChanged
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
System.Collections.Specialized.NotifyCollectionChangedEventHandler
|