نسخ ولصق الصفوف في GridDesktop داخل عنصر التحكم وبين Control و Excel
Contents
[
Hide
]
إذا كنت ترغب في تمكين نسخ ولصق الصفوف في GridDesktop ضمن عنصر التحكم أو بين control و excel ، فالرجاء ضبط الخاصية GridDesktop.ClipboardCopyPaste على true. يمكنك ضبط هذه الخاصية في وقت التصميم أو في الكود. القيمة الافتراضية لهذه الخاصية هي كاذبة. حاليًا ، يمكنه فقط نسخ قيم الخلية ولصقها ولن ينسخ أي إعداد آخر للخلية مثل التنسيق ونمط الحدود وما إلى ذلك.
إعداد خاصية GridDesktop.ClipboardCopyPaste في Design Mode و Run Time
يعيّن نموذج التعليمات البرمجية التالي الخاصية 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; |