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

Compares two list styles for equality.

Definition

Namespace:Telerik.Windows.Documents.Lists

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class ListStyleEqualityComparer : IEqualityComparer<DocumentList>

Inheritance: objectListStyleEqualityComparer

Implements: IEqualityComparer<DocumentList>

Constructors

C#
public ListStyleEqualityComparer()

Methods

Compares two DocumentList objects for equality based on their list styles.

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

The first DocumentList to compare.

yDocumentList

The second DocumentList to compare.

Returns:

bool

True if the two DocumentList objects are considered equal; otherwise, false.

Implements: IEqualityComparer<DocumentList>.Equals(DocumentList, DocumentList)

Gets the hash code for the specified DocumentList.

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

The DocumentList instance for which the hash code is to be computed.

Returns:

int

Returns the hash code as an integer.

Implements: IEqualityComparer<DocumentList>.GetHashCode(DocumentList)