Back to Devexpress

Formatting.Equals(Object) Method

officefileapi-devexpress-dot-spreadsheet-dot-formatting-dot-equals-x28-system-dot-object-x29.md

latest2.8 KB
Original Source

Formatting.Equals(Object) Method

Determines whether or not the specified object is equal to the current Formatting instance.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
bool Equals(
    object obj
)
vb
Function Equals(
    obj As Object
) As Boolean

Parameters

NameTypeDescription
objObject

The object to compare with the current object.

|

Returns

TypeDescription
Boolean

true , if the specified object is equal to the current Formatting instance; otherwise false.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Equals(Object) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-spreadsheet-use-cell-range-as-data-source/CS/RangeDataSource/Form1.cs#L31

csharp
CellRange dataRange = sheet.Selection;
if (dataRange.Equals(sheet.Tables[0].Range))
    options.UseFirstRowAsHeader = true;

winforms-spreadsheet-use-cell-range-as-data-source/VB/RangeDataSource/Form1.vb#L35

vb
Dim dataRange As CellRange = sheet.Selection
If dataRange.Equals(sheet.Tables(0).Range) Then
    options.UseFirstRowAsHeader = True

See Also

Formatting Interface

Formatting Members

DevExpress.Spreadsheet Namespace