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

Compares document lists by their styles, ignoring list-specific data outside the style.

Definition

Namespace:Telerik.WinForms.Documents.Lists

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class ListStyleEqualityComparer

Inheritance: objectListStyleEqualityComparer

Constructors

C#
public ListStyleEqualityComparer()

Methods

Determines whether the two lists' styles compare as equal.

C#
public bool Equals(DocumentList x, DocumentList y)
Parameters:xDocumentList

The first list to compare.

yDocumentList

The second list to compare.

Returns:

bool

true if the styles compare as equal; otherwise, false.

Returns the hash code of the list's style, consistent with the style-based comparison.

C#
public int GetHashCode(DocumentList obj)
Parameters:objDocumentList

The list whose style supplies the hash code.

Returns:

int

The hash code of obj's style.