Copyright © 2003-2010 MultiMedia Soft

SurfaceColor.GradientFactor property

Previous pageReturn to chapter overviewNext page


[Visual Basic]

Overrides Public Property GradientFactor As Short



public override short GradientFactor  {get; set;}



public: __property short get_GradientFactor ();

public: __property void set_GradientFactor (short);




The factor used to calculate the 3D gradient applied to the color.

The value can be in the range from 1 to 6: the higher is the value the darker will appear the button surface; the default value is 4.

Here follows a set of identical buttons whose only difference is the GradientFactor property value that is displayed over the button surface.

3dcm_i000065 3dcm_i000066 3dcm_i000063

3dcm_i000067 3dcm_i000068 3dcm_i000069



See also

SurfaceColor class.

ColorSurfaceNormal, ColorSurfaceMO, ColorSurfaceInternal, ColorSurfaceFocus, ColorSurfaceDisabled, ColorSurfacePressed properties.

How to change the button colors section.