Share via


XmlMappedRange.Cut(Object) Method

Definition

Cuts the contents of the XmlMappedRange control to the Clipboard or pastes it into a specified destination.

public object Cut (object Destination);
abstract member Cut : obj -> obj
Public Function Cut (Optional Destination As Object) As Object

Parameters

Destination
Object

The range where the object should be pasted. If this argument is omitted, the object is cut to the Clipboard.

Returns

Examples

The following code example uses the Cut method to cut an XmlMappedRange to the Clipboard. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

private void CutToClipboard()
{
    this.CustomerLastNameCell.Value2 = "Smith";
    this.CustomerLastNameCell.Cut();
}
Private Sub CutToClipboard()
    Me.CustomerLastNameCell.Value2 = "Smith"
    Me.CustomerLastNameCell.Cut()
End Sub

Remarks

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

Applies to