Represents the base class for document element properties in the Telerik document model.
Definition
Namespace:Telerik.Windows.Documents.Model.Styles
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public abstract class DocumentElementPropertiesBase : IElementWithStyle
Inheritance: objectDocumentElementPropertiesBase
Derived Classes:
Implements:
Constructors
Properties
Gets a value indicating whether the document element has revisions.
public bool HasRevisions { get; }
Gets the original properties of the document element.
public DocumentElementPropertiesBase OriginalProperties { get; }
Gets or sets the original style name of the document element.
[XamlSerializable("")]
public string OriginalStyleName { get; set; }
A string representing the original style name.
Gets or sets the revision information for the document element.
public RevisionInfo RevisionInfo { get; set; }
A RevisionInfo object that contains details about the revision state of the document element.
Gets or sets the style applied to the document element.
public virtual StyleDefinition Style { get; set; }
The style applied to the document element represented by this instance.
Implements:
Gets or sets the style name for the document element.
public string StyleName { get; set; }
A string that represents the name of the style applied to the document element.
Gets or sets the style properties for the document element.
public IEnumerable<StylePropertyBase> StyleProperties { get; }
The style properties associated with the document element.
Methods
Clears all properties from the document element.
public void ClearProperties()
Copies properties from the specified DocumentElementPropertiesBase object to the current instance.
public virtual void CopyPropertiesFrom(DocumentElementPropertiesBase fromProperties)
The DocumentElementPropertiesBase object from which to copy properties.
protected abstract DocumentElementPropertiesBase CreateInstance()
Retrieves the value of a specified style property from the document element.
public StylePropertyBase GetStyleProperty(IStylePropertyDefinition propertyDefinition)
The definition of the style property to retrieve.
Returns:The value of the specified style property, if it exists; otherwise, null.
Retrieves the value of the specified style property.
public StylePropertyBase GetStyleProperty(string propertyName)
The name of the style property to retrieve.
Returns:The value of the style property identified by propertyName.
protected abstract void InitProperties()
Merges the properties of the current DocumentElementPropertiesBase instance with the properties of another DocumentElementPropertiesBase instance.
public void MergePropertiesWith(DocumentElementPropertiesBase propertiesToMergeWith)
The DocumentElementPropertiesBase instance whose properties will be merged into the current instance.
protected virtual void OnStyleChanged()
protected virtual void OnStyleChanging()
protected virtual void OnStylePropertyChangedOverride(StylePropertyChangeEventArgs args)
Returns a string representation of the current instance of the DocumentElementPropertiesBase class.
public override string ToString()
A string that represents the current object.
Overrides: