Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Kopiert das XmlMappedRange-Steuerelement als Bild in die Zwischenablage.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Syntax
'Declaration
Function CopyPicture ( _
Appearance As XlPictureAppearance, _
Format As XlCopyPictureFormat _
) As Object
Object CopyPicture(
XlPictureAppearance Appearance,
XlCopyPictureFormat Format
)
Parameter
- Appearance
Typ: Microsoft.Office.Interop.Excel.XlPictureAppearance
Gibt an, wie das Bild kopiert werden soll.
Kann eine der folgenden XlPictureAppearance-Konstanten sein:
xlPrinter
xlScreen
- Format
Typ: Microsoft.Office.Interop.Excel.XlCopyPictureFormat
Das Format des Bilds.
Kann eine der folgenden XlCopyPictureFormat-Konstanten sein:
xlBitmap
xlPicture
Rückgabewert
Typ: System.Object
Hinweise
Optionale Parameter
Informationen zu optionalen Parametern finden Sie unter Optionale Parameter in Office-Lösungen.
Beispiele
Im folgenden Codebeispiel wird mithilfe der CopyPicture-Methode ein XmlMappedRange als Bitmap in die Zwischenablage kopiert.In diesem Codebeispiel wird davon ausgegangen, dass das aktuelle Arbeitsblatt einen XmlMappedRange mit dem Namen CustomerLastNameCell enthält.
Private Sub CopyAsBitmap()
Me.CustomerLastNameCell.Value2 = "Smith"
Me.CustomerLastNameCell.CopyPicture( _
Excel.XlPictureAppearance.xlScreen, Excel.XlCopyPictureFormat.xlBitmap)
End Sub
private void CopyAsBitmap()
{
this.CustomerLastNameCell.Value2 = "Smith";
this.CustomerLastNameCell.CopyPicture(
Excel.XlPictureAppearance.xlScreen,
Excel.XlCopyPictureFormat.xlBitmap);
}
.NET Framework-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.