C # default parameters

zhaozj2021-02-16  51

C # cannot be written in a function of default parameters, but can call such a function, and obtain the method of obtaining the parameter default is to call Type.Missing. as follows:

Object Template = ""; Object missingValue = type.missing; app.documents.add (Ref template, ref missingvalue, ref missingvalue, ref missing);

转载请注明原文地址:https://www.9cbs.com/read-20190.html

New Post(0)