New to Telerik UI for WinForms? Start a free 30-day trial

Stores the list identifiers and insertion behavior serialized so list memberships can be rebuilt when a document is loaded.

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class ListSerializationData

Inheritance: objectListSerializationData

Constructors

Initializes an empty list-serialization record.

C#
public ListSerializationData()

Initializes a serialization record for a list and its style.

C#
public ListSerializationData(int listID, int listStyleID, bool newListOnInsert)
Parameters:listIDint

The identifier of the document list.

listStyleIDint

The identifier of the list style.

newListOnInsertbool

true to create a distinct list when the record is inserted into another document.

Properties

Gets or sets the identifier of the document list.

C#
[XamlSerializable]
public int ID { get; set; }

Gets or sets whether insertion into another document creates a separate list instead of reusing the source list.

C#
[XamlSerializable(false)]
public bool NewListOnInsert { get; set; }

Gets or sets the identifier of the list style used by the document list.

C#
[XamlSerializable]
public int StyleID { get; set; }

Methods

Determines whether the list identifiers and insertion behavior match another serialization record.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with this record.

Returns:

bool

true if all three stored values match; otherwise, false.

Overrides: object.Equals(object)

Computes a hash code from the list identifier, style identifier, and insertion behavior.

C#
public override int GetHashCode()
Returns:

int

A hash code for this serialization record.

Overrides: object.GetHashCode()