GridDesktop内およびコントロールとエクセル間で行のコピーと貼り付け
Contents
[
Hide
]
GridDesktop内のコントロール間、またはコントロールとエクセル間で行のコピーと貼り付けを有効にしたい場合は、GridDesktop.ClipboardCopyPaste プロパティを true に設定してください。このプロパティはデザインタイムまたはコードで設定できます。既定値は false です。現在、このプロパティはセルの値のコピーと貼り付けにのみ対応しており、セルの書式、境界スタイルなどの他の設定はコピーされません。
デザインモードと実行時でのGridDesktop.ClipboardCopyPasteプロパティの設定
次のサンプルコードは、実行時でGridDesktop.ClipboardCopyPasteプロパティを設定します。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
/* | |
* Indicates whether to copy/paste based on clipboard, so that it can copy/paste with MS-EXCEL. | |
* It will only copy/paste cell value and will not copy any other setting of the cell like format, border style and so on. | |
* The default value is false. | |
*/ | |
gridDesktop1.EnableClipboardCopyPaste = true; |