public int?GetThemeSysInt(int propertyId) { HResult hr = UxThemeExNativeMethods.GetThemeSysInt( theme, propertyId, out int value); return(Found(hr) ? value : (int?)null); }