Class
TrackChangesOptions

Represents the options for tracking changes in a document.

Definition

Namespace:Telerik.Windows.Documents.Model.Revisions

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class TrackChangesOptions

Inheritance: objectTrackChangesOptions

Constructors

TrackChangesOptions()

Declaration

cs-api-definition
public TrackChangesOptions()

Properties

ChangedLinesDecorationColorOptions

Specifies the options for the changed lines decoration color in the track changes feature.

Declaration

cs-api-definition
public ChangedLinesOptions ChangedLinesDecorationColorOptions { get; }

Property Value

ChangedLinesOptions

Comments

Gets or sets the options for tracking changes related to comments in the document.

Declaration

cs-api-definition
public CommentsOptions Comments { get; }

Property Value

CommentsOptions

An instance of TrackChangesOptions representing the settings for comment tracking.

CurrentAuthorColor

Gets or sets the color associated with the current author in the track changes feature.

Declaration

cs-api-definition
public Color CurrentAuthorColor { get; set; }

Property Value

Color

A Color value that represents the current author's color.

Delete

Represents the options for tracking changes in delete operations within the document model.

Declaration

cs-api-definition
public StructureRevisionOptions Delete { get; }

Property Value

StructureRevisionOptions

DeletedCells

Gets or sets the options for tracking deleted cells in a document.

Declaration

cs-api-definition
public TableRevisionOptions DeletedCells { get; }

Property Value

TableRevisionOptions

Formatting

Represents the options for formatting when tracking changes in documents.

Declaration

cs-api-definition
public StructureRevisionOptions Formatting { get; }

Property Value

StructureRevisionOptions

Insert

Specifies the options for inserting changes in the document's revisions tracking feature.

Declaration

cs-api-definition
public StructureRevisionOptions Insert { get; }

Property Value

StructureRevisionOptions

InsertedCells

Gets or sets the options for tracking changes related to inserted cells in a document.

Declaration

cs-api-definition
public TableRevisionOptions InsertedCells { get; }

Property Value

TableRevisionOptions

The options that specify how inserted cells are handled when tracking changes.

TrackFormatting

Gets or sets a value indicating whether to track formatting changes in revisions.

Declaration

cs-api-definition
public bool TrackFormatting { get; set; }

Property Value

bool

A boolean value that determines if formatting changes are tracked. If true, formatting changes will be included in the revision tracking; otherwise, they will not.

Methods

GetChangedLinesColor()

Gets the color of the changed lines in the document.

Declaration

cs-api-definition
public Color? GetChangedLinesColor()

Returns

Color?

A Color representing the color assigned to the changed lines.

GetColorByAuthor(string)

Retrieves the color associated with the specified author's changes in a document.

Declaration

cs-api-definition
public Color GetColorByAuthor(string authorUserName)

Parameters

authorUserName

string

The name of the author whose change color is to be retrieved.

Returns

Color

The color assigned to the author's changes, represented as a string.

GetTableDeleteColor(string)

Retrieves the color used to indicate deleted tables in the tracked changes of a document.

Declaration

cs-api-definition
public Color? GetTableDeleteColor(string authorUserName)

Parameters

authorUserName

string

The user name if the author.

Returns

Color?

Returns the color associated with the deletion of the specified table as a string.

GetTableInsertColor(string)

Retrieves the color used for inserting tables in the tracked changes feature.

Declaration

cs-api-definition
public Color? GetTableInsertColor(string authorUserName)

Parameters

authorUserName

string

The user name of the author

Returns

Color?

A string representing the color associated with inserting tables. The color format is typically in hexadecimal representation.

SetDeletedTextProperties(string, SpanProperties)

Sets the properties for text that has been marked as deleted in the document.

Declaration

cs-api-definition
public void SetDeletedTextProperties(string userName, SpanProperties properties)

Parameters

userName

string

The user that makes the change.

properties

SpanProperties

The span properties to apply to the deleted text.

SetInsertedTextProperties(string, SpanProperties)

Sets the properties for the inserted text in the track changes feature.

Declaration

cs-api-definition
public void SetInsertedTextProperties(string userName, SpanProperties properties)

Parameters

userName

string

The user that makes the change

properties

SpanProperties

The properties to be applied to the inserted text.