コントロール内およびコントロールと Excel の間で GridDesktop の行をコピーして貼り付ける
Contents
[
Hide
]
コントロール内またはコントロールと Excel の間で 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; |