public virtual int IsPageDirty() { // Note this returns an HRESULT not a Bool. return (IsDirty ? (int)VSConstants.S_OK : (int)VSConstants.S_FALSE); }