New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public abstract class DocumentElementPropertiesBase : IElementWithStyle

Inheritance: objectDocumentElementPropertiesBase

Derived Classes: DocumentPropertiesEmptyDocumentElementPropertiesParagraphPropertiesSectionPropertiesSpanPropertiesTableCellPropertiesTablePropertiesTableRowProperties...

Implements: IElementWithStyle

Constructors

C#
public DocumentElementPropertiesBase(DocumentElement owner)
Parameters:ownerDocumentElement
C#
public DocumentElementPropertiesBase(StyleDefinition owner)
Parameters:ownerStyleDefinition

Properties

Gets a value indicating whether the document element has revisions.

C#
public bool HasRevisions { get; }

Gets the original properties of the document element.

C#
public DocumentElementPropertiesBase OriginalProperties { get; }

Gets or sets the original style name of the document element.

C#
[XamlSerializable("")]
public string OriginalStyleName { get; set; }
Property Value:

A string representing the original style name.

Gets or sets the revision information for the document element.

C#
public RevisionInfo RevisionInfo { get; set; }
Property Value:

A RevisionInfo object that contains details about the revision state of the document element.

Gets or sets the style applied to the document element.

C#
public virtual StyleDefinition Style { get; set; }
Property Value:

The style applied to the document element represented by this instance.

Implements: IElementWithStyle.Style

Gets or sets the style name for the document element.

C#
public string StyleName { get; set; }
Property Value:

A string that represents the name of the style applied to the document element.

Gets or sets the style properties for the document element.

C#
public IEnumerable<StylePropertyBase> StyleProperties { get; }
Property Value:

The style properties associated with the document element.

Methods

Clears all properties from the document element.

C#
public void ClearProperties()

Copies properties from the specified DocumentElementPropertiesBase object to the current instance.

C#
public virtual void CopyPropertiesFrom(DocumentElementPropertiesBase fromProperties)
Parameters:fromPropertiesDocumentElementPropertiesBase

The DocumentElementPropertiesBase object from which to copy properties.

C#
protected abstract DocumentElementPropertiesBase CreateInstance()
Returns:

DocumentElementPropertiesBase

Retrieves the value of a specified style property from the document element.

C#
public StylePropertyBase GetStyleProperty(IStylePropertyDefinition propertyDefinition)
Parameters:propertyDefinitionIStylePropertyDefinition

The definition of the style property to retrieve.

Returns:

StylePropertyBase

The value of the specified style property, if it exists; otherwise, null.

Retrieves the value of the specified style property.

C#
public StylePropertyBase GetStyleProperty(string propertyName)
Parameters:propertyNamestring

The name of the style property to retrieve.

Returns:

StylePropertyBase

The value of the style property identified by propertyName.

C#
protected abstract void InitProperties()

Merges the properties of the current DocumentElementPropertiesBase instance with the properties of another DocumentElementPropertiesBase instance.

C#
public void MergePropertiesWith(DocumentElementPropertiesBase propertiesToMergeWith)
Parameters:propertiesToMergeWithDocumentElementPropertiesBase

The DocumentElementPropertiesBase instance whose properties will be merged into the current instance.

C#
protected virtual void OnStyleChanged()
C#
protected virtual void OnStyleChanging()
C#
protected virtual void OnStylePropertyChangedOverride(StylePropertyChangeEventArgs args)
Parameters:argsStylePropertyChangeEventArgs

Returns a string representation of the current instance of the DocumentElementPropertiesBase class.

C#
public override string ToString()
Returns:

string

A string that represents the current object.

Overrides: object.ToString()

C#
protected virtual void ValidateStyleType(StyleDefinition value)
Parameters:valueStyleDefinition