Class
PasteOptions

Configures what content to paste into a range, controlling which cell properties are copied.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public class PasteOptions

Inheritance: objectPasteOptions

Constructors

PasteOptions(PasteType, bool)

Initializes a new PasteOptions with the specified paste type and blank-skipping behavior.

Declaration

cs-api-definition
public PasteOptions(PasteType pasteType, bool skipBlanks = false)

Parameters

pasteType

PasteType

Type of the paste.

skipBlanks

bool

The value indicating whether blanks should be skipped.

Fields

All

Pastes all cell content including values, formulas, formatting, and column widths.

Declaration

cs-api-definition
public static readonly PasteOptions All

Field Value

PasteOptions

Properties

PasteType

Gets which content elements are pasted, such as all, values only, or formatting only.

Declaration

cs-api-definition
public PasteType PasteType { get; }

Property Value

PasteType

The type of the paste.

SkipBlanks

Gets whether blank cells in the source range are ignored during paste, preserving existing target cell values.

Declaration

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

Property Value

bool

The value indicating whether blanks should be skipped.