This document is archived and information here might be outdated.  Recommended version.


IToolbarControlDefault.FadeColor Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > IToolbarControlDefault Interface > IToolbarControlDefault.FadeColor Property
ArcGIS Developer Help

IToolbarControlDefault.FadeColor Property

Background fade color of the ToolbarControl.

[Visual Basic .NET]
Public Property FadeColor As Integer
[C#]
public int FadeColor {get; set;}
[C++]
HRESULT get_FadeColor(
void
);
[C++]
HRESULT put_FadeColor(
);

Product Availability

Available with ArcGIS Engine.

Description

Returns or sets the fade color of the ToolbarControl. By default FadeColor is set to the Windows System '3D Objects' color. Internally the OLE_Color is stored as a long integer where the value may be calculated for any RGB combination as follows:

OLE_Color = (Red) + (Green * 256) + (Blue * 256 * 256)

Where Red, Green and Blue are Long Integers within the range 0 - 255.

If the FadeColor is different to the BackColor the ToolbarControl background will be shaded between the BackColor and FadeColor by the FillDirection.

Remarks

The BackColor, FadeColor and FillDirection properties do not affect the visual appearance of the ToolbarControl when Transparent is set to true.

When ThemedDrawing is false the background color of any items on the ToolbarControl is an alpha blend of the BackColor and the Windows System '3D Highlight' color. When ThemedDrawing is true the system controls the background color.

[C#]

When working directly with AxControls class use the FadeColor property as follows:

axToolbarControl1.FadeColor = System.Drawing.Color.Red;

When using the Controls interop assembly use the FadeColor property as follows:

IToolbarControlDefault toolbarControl = (IToolbarControlDefault) axToolbarControl1.Object;
toolbarControl.FadeColor = 255;

[Visual Basic .NET]

When working directly with AxControls class use the FadeColor property as follows:

AxToolbarControl1.FadeColor = System.Drawing.Color.Red

When using the Controls interop assembly use the FadeColor property as follows:

Dim toolbarControl As IToolbarControlDefault = AxToolbarControl1.Object
toolbarControl.FadeColor = Convert.ToUInt32(255)

See Also

IToolbarControlDefault Interface