Copyright © 2003-2024 MultiMedia Soft

SurfaceColor.GradientFactor property

Previous pageReturn to chapter overviewNext page

Type

[Visual Basic]

Overrides Public Property GradientFactor As Short

 

[C#]

public override short GradientFactor  {get; set;}

 

[C++]

public: __property short get_GradientFactor ();

public: __property void set_GradientFactor (short);

 

 

Remarks

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.