Aracılığıyla paylaş


ChartSheetBase.CopyPicture Yöntem

Kopya Microsoft.Office.Tools.Excel.ChartSheetBase bir resim olarak panoya.

Ad alanı:  Microsoft.Office.Tools.Excel
Derleme:  Microsoft.Office.Tools.Excel.v4.0.Utilities (Microsoft.Office.Tools.Excel.v4.0.Utilities.dll içinde)

Sözdizimi

'Bildirim
Public Sub CopyPicture ( _
    appearance As XlPictureAppearance, _
    format As XlCopyPictureFormat, _
    size As XlPictureAppearance _
)
public void CopyPicture(
    XlPictureAppearance appearance,
    XlCopyPictureFormat format,
    XlPictureAppearance size
)

Parametreler

Notlar

İsteğe Bağlı Parametreler

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

Örnekler

Aşağıdaki kod örneğinde CopyPicture geçerli yöntem Microsoft.Office.Tools.Excel.ChartSheetBase bir bitmap olarak panoya.

Private Sub CopyChartSheetAsBitmap()
    Globals.Sheet1.Range("A1", "A5").Value2 = 22
    Globals.Sheet1.Range("B1", "B5").Value2 = 55

    Me.SetSourceData(Globals.Sheet1.Range("A1", "B5"), _
        Excel.XlRowCol.xlColumns)
    Me.ChartType = Excel.XlChartType.xlColumnClustered

    Me.CopyPicture(Excel.XlPictureAppearance.xlScreen, _
        Excel.XlCopyPictureFormat.xlBitmap, _
        Excel.XlPictureAppearance.xlScreen)
End Sub
private void CopyChartSheetAsBitmap()
{
    Globals.Sheet1.Range["A1", "A5"].Value2 = 22;
    Globals.Sheet1.Range["B1", "B5"].Value2 = 55;

    this.SetSourceData(Globals.Sheet1.Range["A1", "B5"],
        Excel.XlRowCol.xlColumns);
    this.ChartType = Excel.XlChartType.xlColumnClustered;

    this.CopyPicture(Excel.XlPictureAppearance.xlScreen,
        Excel.XlCopyPictureFormat.xlBitmap,
        Excel.XlPictureAppearance.xlScreen);
}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

ChartSheetBase Sınıf

Microsoft.Office.Tools.Excel Ad Alanı