0

VSTO excel 的 pasteSpecial 对话框需要 30 个参数。我试过到处找,但找不到每个参数代表什么。

当对话框弹出时,我正在尝试为 pasteSpecial 设置默认值。(c#vsto2007)

bool isPaste = Globals.ThisAddIn.Application.Dialogs[XlBuiltInDialog.xlDialogPasteSpecial].Show
                (
                Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
                Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
                Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
                Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
                Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
                Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
4

1 回答 1

0

根据this MSDN page,有四个论点:

paste_num, operation_num, skip_blanks and transpose

例如,这将显示选中 Transpose 的对话框:

bool isPaste = Globals.ThisAddIn.Application.Dialogs[XlBuiltInDialog.xlDialogPasteSpecial].Show
                    (Type.Missing, Type.Missing, Type.Missing, TRUE ...

我相信其他 26 个参数是占位符,并且您选择的任何对话框都将指示 30 个参数。

于 2013-04-25T14:12:59.427 回答