Class StyleCollection
Represents the collection of DocumentStyle objects.
Inheritance
System.Object
StyleCollection
Namespace: Syncfusion.Windows.Controls.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.WPF.dll
Syntax
public class StyleCollection : ObservableCollection<DocumentStyle>
Constructors
StyleCollection(BaseNode)
Initializes a new instance of the StyleCollection class for the specified BaseNode.
Declaration
public StyleCollection(BaseNode owner)
Parameters
Type | Name | Description |
---|---|---|
BaseNode | owner | The owner for the StyleCollection. |
StyleCollection(BaseNode, IEnumerable<DocumentStyle>)
Initializes a new instance of the StyleCollection class that contains style
copied from the specified collection
for the specified DocumentStyle.
Declaration
public StyleCollection(BaseNode owner, IEnumerable<DocumentStyle> collection)
Parameters
Type | Name | Description |
---|---|---|
BaseNode | owner | The owner for the StyleCollection. |
System.Collections.Generic.IEnumerable<DocumentStyle> | collection | The collection from which the Styles are copied. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The collection parameter cannot be null. |