XmlMappedRange.CopyPicture(XlPictureAppearance, XlCopyPictureFormat) Yöntem

Tanım

XmlMappedRange Denetimi Pano'ya resim olarak kopyalar.

public object CopyPicture (Microsoft.Office.Interop.Excel.XlPictureAppearance Appearance = Microsoft.Office.Interop.Excel.XlPictureAppearance.xlScreen, Microsoft.Office.Interop.Excel.XlCopyPictureFormat Format = Microsoft.Office.Interop.Excel.XlCopyPictureFormat.xlPicture);
abstract member CopyPicture : Microsoft.Office.Interop.Excel.XlPictureAppearance * Microsoft.Office.Interop.Excel.XlCopyPictureFormat -> obj
Public Function CopyPicture (Optional Appearance As XlPictureAppearance = Microsoft.Office.Interop.Excel.XlPictureAppearance.xlScreen, Optional Format As XlCopyPictureFormat = Microsoft.Office.Interop.Excel.XlCopyPictureFormat.xlPicture) As Object

Parametreler

Appearance
XlPictureAppearance

Resmin nasıl kopyalanması gerektiğini belirtir. Aşağıdaki XlPictureAppearance sabitlerden biri olabilir: xlPrinterxlScreen

Format
XlCopyPictureFormat

Resmin biçimi. Aşağıdaki XlCopyPictureFormat sabitlerden biri olabilir: xlBitmapxlPicture

Döndürülenler

Örnekler

Aşağıdaki kod örneği, bir öğesini Pano'ya bit eşlem olarak kopyalamak XmlMappedRange için yöntemini kullanırCopyPicture. Bu kod örneği, geçerli çalışma sayfasının adlı CustomerLastNameCellbir XmlMappedRange içerdiğini varsayar.

private void CopyAsBitmap()
{
    this.CustomerLastNameCell.Value2 = "Smith";
    this.CustomerLastNameCell.CopyPicture(
        Excel.XlPictureAppearance.xlScreen, 
        Excel.XlCopyPictureFormat.xlBitmap);
}
Private Sub CopyAsBitmap()
    Me.CustomerLastNameCell.Value2 = "Smith"
    Me.CustomerLastNameCell.CopyPicture( _
        Excel.XlPictureAppearance.xlScreen, Excel.XlCopyPictureFormat.xlBitmap)
End Sub

Açıklamalar

İsteğe Bağlı Parametreler

İsteğe bağlı parametreler hakkında bilgi için bkz. Office Çözümlerinde İsteğe Bağlı Parametreler.

Şunlara uygulanır