public MARGINS?GetThemeMargins(int partId, int stateId, int propertyId) { HResult hr = StyleNativeMethods.GetThemeMargins(theme, IntPtr.Zero, partId, stateId, propertyId, null, out MARGINS value); return(Found(hr) ? value : (MARGINS?)null); }
public int?GetThemeSysInt(int propertyId) { HResult hr = StyleNativeMethods.GetThemeSysInt(theme, propertyId, out int value); return(Found(hr) ? value : (int?)null); }
public int?GetThemeMetric(int partId, int stateId, int propertyId) { HResult hr = StyleNativeMethods.GetThemeMetric(theme, IntPtr.Zero, partId, stateId, propertyId, out int value); return(Found(hr) ? value : (int?)null); }
public IntPtr?GetThemeBitmap(int partId, int stateId, int propertyId) { HResult hr = StyleNativeMethods.GetThemeBitmap(theme, partId, stateId, propertyId, GBF.GBF_DIRECT, out IntPtr value); return(hr.Succeeded() ? value : (IntPtr?)null); }