Class Stylesheet
Inheritance
Namespace: Telerik.Windows.Documents.Model.Styles
Assembly: Telerik.Windows.Documents.dll
Syntax
public class Stylesheet : Object
Constructors
Stylesheet()
Declaration
public Stylesheet()
Properties
Lists
Declaration
[XamlCompositePropertySerializable]
public List<ListSerializationData> Lists { get; set; }
Property Value
System.Collections.Generic.List<ListSerializationData>
|
ListStyles
Declaration
[XamlCompositePropertySerializable]
public List<ListStyle> ListStyles { get; set; }
Property Value
System.Collections.Generic.List<ListStyle>
|
Styles
Declaration
[XamlCompositePropertySerializable]
public List<StyleDefinition> Styles { get; set; }
Property Value
System.Collections.Generic.List<StyleDefinition>
|
Version
Declaration
[XamlSerializable]
public string Version { get; set; }
Property Value
System.String
|
Methods
ApplyStylesheetToDocument(RadDocument)
Copies all styles, list styles and other stylesheet data to the specified Document
Declaration
public void ApplyStylesheetToDocument(RadDocument document)
Parameters
RadDocument
document
|
ApplyStylesheetToRichTextBox(RadRichTextBox)
Suspends layout updates of RadRichtextBox, which has better performance and uses ApplyStylesheetToDocument(RadDocument) to apply the stylesheet.
Declaration
public void ApplyStylesheetToRichTextBox(RadRichTextBox richTextBox)
Parameters
RadRichTextBox
richTextBox
|
CopyStylesFromDocument(RadDocument, Func<StyleDefinition, Boolean>)
Declaration
protected virtual void CopyStylesFromDocument(RadDocument document, Func<StyleDefinition, bool> filter = null)
Parameters
RadDocument
document
|
System.Func<StyleDefinition, System.Boolean>
filter
|
ExtractStylesheetFromDocument(RadDocument, Boolean)
Declaration
public void ExtractStylesheetFromDocument(RadDocument document, bool customStylesOnly = false)
Parameters
RadDocument
document
|
System.Boolean
customStylesOnly
|