Inheritance: ExcelDna.Integration.CustomUI.ExcelComAddIn, ICustomTaskPaneConsumer
 private static ICTPFactory GetCTPFactory()
 {
     if (_addin == null)
     {
         // Register and create addin
         _addin = new ExcelCustomTaskPaneAddIn {
             DnaLibrary = DnaLibrary.CurrentLibrary
         };
         ExcelComAddInHelper.LoadComAddIn(_addin);
     }
     return(_addin.Factory);
 }
Exemplo n.º 2
0
 private static ICTPFactory GetCTPFactory()
 {
     if (_addin == null)
     {
         // Register and create addin
         _addin = new ExcelCustomTaskPaneAddIn { DnaLibrary = DnaLibrary.CurrentLibrary };
         ExcelComAddInHelper.LoadComAddIn(_addin);
     }
     return _addin.Factory;
 }
Exemplo n.º 3
0
 internal static void DetachAddIn()
 {
     _addin = null;
 }
 internal static void DetachAddIn()
 {
     _addin = null;
 }