The color scheme is applied in the Office2007Form and Office2010Form, by default and the color scheme cannot be applied to controls placed in the Form. So, it is required to specify the colors for the controls placed in the Form based on the color scheme. The color scheme of the Office2007Form can be applied by using the property, ColorScheme.
There are four different color schemes available in the Office2007Form.
Managed color scheme helps to apply the user-defined colors. The Managed color scheme can be applied to the Office2007Form by using the function, ApplyManagedColors. Each and every item of the colors in the Office2007Form can be acquired by using the function, GetColorTable in the Office2007Colors.
The following code example demonstrates the same.
Figure 1: ColorScheme is set as Blue
Figure 2: ColorScheme is set as Black
Figure 3: ColorScheme is set as Silver
Figure 4: ColorScheme is set as Managed
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|