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