if (objIOleInPlaceActiveObject == null) return COM.S_OK;
private int SetBorderSpace(int pborderwidths) {	// A Control/Document can :	// Use its own toolbars, requesting border space of a specific size, or, 	// Use no toolbars, but force the container to remove its toolbars by passing a 	//   valid BORDERWIDTHS structure containing nothing but zeros in the pborderwidths parameter, or, 	// Use no toolbars but allow the in-place container to leave its toolbars up by 	//   passing NULL as the pborderwidths parameter.		RECT borderwidth = new RECT();	if (pborderwidths == 0 || currentdoc == null ) return COM.S_OK;			COM.MoveMemory(borderwidth, pborderwidths, RECT.sizeof);	currentdoc.setBorderSpace(borderwidth);	return COM.S_OK;}