New to Telerik Document ProcessingStart a free 30-day trial

Base class for reporting the outcome of copy-paste operations in worksheets.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

C#
public class CopyPasteResultBase

Inheritance: objectCopyPasteResultBase

Derived Classes: PasteResult

Constructors

Initializes a new result with the specified success state and optional error details.

C#
protected CopyPasteResultBase(bool success, string errorMessage = "", string errorMessageLocalizationKey = "")
Parameters:successbool

The success.

errorMessagestring

The error message.

errorMessageLocalizationKeystring

The error message localization key.

Properties

The error message describing why the paste operation failed, or empty if successful.

C#
public string ErrorMessage { get; }
Property Value:

The error message.

Whether the paste operation completed successfully without errors.

C#
public bool Success { get; }
Property Value:

The value indicating whether the paste was successful.