public LOGFONT GetThemeFont(int partId, int stateId, int propertyId) { var value = new LOGFONT(); HResult hr = UxThemeExNativeMethods.UxGetThemeFont( themeFile, theme, IntPtr.Zero, partId, stateId, propertyId, value); return(Found(hr) ? value : null); }