XmlMappedRange.Cut Method

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

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

Syntax

'Declaration
Function Cut ( _
    Destination As Object _
) As Object
Object Cut(
    Object Destination
)

Parameters

  • Destination
    Type: System.Object
    The range where the object should be pasted. If this argument is omitted, the object is cut to the Clipboard.

Return Value

Type: System.Object

Remarks

Optional Parameters

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

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 Sub CutToClipboard()
    Me.CustomerLastNameCell.Value2 = "Smith"
    Me.CustomerLastNameCell.Cut()
End Sub
private void CutToClipboard()
{
    this.CustomerLastNameCell.Value2 = "Smith";
    this.CustomerLastNameCell.Cut(missing);
}

.NET Framework Security

See Also

Reference

XmlMappedRange Interface

Microsoft.Office.Tools.Excel Namespace