Dialogs的参数是什么[XlBuiltInDialog.xlDialogPasteSpecial]。显示

时间:2013-04-25 12:42:03

标签: c# vsto excel-2007

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);

1 个答案:

答案 0 :(得分:0)

根据此MSDN页面,有四个参数:

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个参数。