Stylesheet
Represents a collection of styles that can be applied to document elements.
Definition
Namespace:Telerik.Windows.Documents.Model.Styles
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class Stylesheet
Inheritance: objectStylesheet
Constructors
public Stylesheet()
Properties
Gets the collection of lists defined in the stylesheet.
[XamlCompositePropertySerializable]
public List<ListSerializationData> Lists { get; set; }
Gets the collection of list styles defined in the stylesheet.
[XamlCompositePropertySerializable]
public List<ListStyle> ListStyles { get; set; }
Gets the collection of styles defined in the stylesheet.
[XamlCompositePropertySerializable]
public List<StyleDefinition> Styles { get; set; }
Methods
Copies all styles, list styles and other stylesheet data to the specified Document
Suspends layout updates of RadRichtextBox, which has better performance and uses ApplyStylesheetToDocument(RadDocument) to apply the stylesheet.
public void ApplyStylesheetToRichTextBox(RadRichTextBox richTextBox)
protected virtual void CopyStylesFromDocument(RadDocument document, Func<StyleDefinition, bool> filter = null)
Extracts the stylesheet from the specified RadDocument.
public void ExtractStylesheetFromDocument(RadDocument document, bool customStylesOnly = false)
The RadDocument from which to extract the stylesheet.
customStylesOnlyboolA boolean indicating whether to include default styles in the extraction.