public RECT?GetThemeRect(int partId, int stateId, int propertyId) { HResult hr = UxThemeExNativeMethods.UxGetThemeRect( themeFile, theme, partId, stateId, propertyId, out RECT value); return(Found(hr) ? value : (RECT?)null); }