Class StyleCollection
Inheritance
System.Object
StyleCollection
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinForms.Documents.Model
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public class StyleCollection : 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
|
Explicit Interface Implementations
IEnumerable<StyleDefinition>.GetEnumerator()
Declaration
IEnumerator<StyleDefinition> IEnumerable<StyleDefinition>.GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<StyleDefinition>
|
Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
|
Implements
System.Collections.IEnumerable.GetEnumerator()