public int GetProperty(int propid, out object pvar) {
     if (propid == (int)__VSFPROPID.VSFPROPID_ExtWindowObject) {
         pvar = new VsToolWindowToolbarHostMock();
     } else if (propid == (int)__VSFPROPID.VSFPROPID_Caption) {
         pvar = _caption;
     } else {
         pvar = null;
     }
     return VSConstants.S_OK;
 }
Exemple #2
0
 public int GetProperty(int propid, out object pvar)
 {
     if (propid == (int)__VSFPROPID.VSFPROPID_ExtWindowObject)
     {
         pvar = new VsToolWindowToolbarHostMock();
     }
     else if (propid == (int)__VSFPROPID.VSFPROPID_Caption)
     {
         pvar = _caption;
     }
     else
     {
         pvar = null;
     }
     return(VSConstants.S_OK);
 }