Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1065
How to determine the default color of an object
posted

Hello,

I am using an UltraGrid. The Ultragrid has some rows and some columns.
At the UltraGrid's bottom I am showing a summary.

Beside the UltraGrid I am showing some Grid informations.
Two of the informations are the summary's backcolor and forecolor.
The colors are not set expicitly so they have their default values.
I am getting the colors by using the following property:

MyUltraGrid.DisplayLayout.Bands(0).Summaries("MySummary").Appearance.BackColor
MyUltraGrid.DisplayLayout.Bands(0).Summaries("MySummary").Appearance.ForeColor

Both properties return en empty color: {Name=0, ARGB=(0, 0, 0, 0)}

But the summary's backcolor is a gray shade (I think LightGrey) and the forecolor is black.
These are the default colors of any summary. But using their properties you can only get the empty colors.
So my question is how can I determine which are the real default colors because they are obviously not empty.