Example #1
0
        public SIZE?GetThemePartSize(int partId, int stateId, ThemeSize themeSize)
        {
            HResult hr = UxThemeExNativeMethods.UxGetThemePartSize(
                themeFile, theme, IntPtr.Zero, partId, stateId, null, themeSize, out SIZE value);

            return(Found(hr) ? value : (SIZE?)null);
        }