Skip to main content
A newer version of this page is available. .
Row

DefinedNameConflictResolvingEventArgs.UseExistingName Property

Gets or sets a value indicating whether to use the defined name specified on the destination worksheet or workbook in the conflict situation.

Namespace: DevExpress.Spreadsheet

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

Declaration

public bool UseExistingName { get; set; }

Property Value

Type Description
Boolean

true, to use the name that exists on the destination worksheet or workbook; otherwise, false.

Remarks

The following example demonstrates how to handle the UseExistingName event to always use that version of the defined name that exists on the destination worksheet or workbook in a conflict situation and suppress displaying the Name Conflict dialog.

spreadsheet.DefinedNameConflictResolving += spreadsheet_DefinedNameConflictResolving;
// ...

private void spreadsheet_DefinedNameConflictResolving(object sender, DefinedNameConflictResolvingEventArgs e)
{
    e.UseExistingName = true;
    e.Handled = true;
}
See Also