Class
CopyPasteResultBase

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:

cs-api-definition
public class CopyPasteResultBase

Inheritance: objectCopyPasteResultBase

Derived Classes: PasteResult

Constructors

CopyPasteResultBase(bool, string, string)

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

Declaration

cs-api-definition
protected CopyPasteResultBase(bool success, string errorMessage = "", string errorMessageLocalizationKey = "")

Parameters

success

bool

The success.

errorMessage

string

The error message.

errorMessageLocalizationKey

string

The error message localization key.

Properties

ErrorMessage

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

Declaration

cs-api-definition
public string ErrorMessage { get; }

Property Value

string

The error message.

Success

Whether the paste operation completed successfully without errors.

Declaration

cs-api-definition
public bool Success { get; }

Property Value

bool

The value indicating whether the paste was successful.