ArcObjects Library Reference (Controls)  

ISymbologyControl.BackColor Property

Background color of the SymbologyControl.

[Visual Basic .NET]
Public Property BackColor As Integer
[C#]
public int BackColor {get; set;}
[C++]
HRESULT get_BackColor(
  OLE_COLOR* BackColor
);
[C++]
HRESULT put_BackColor(
  OLE_COLOR BackColor
);
[C++]

Parameters

BackColor [out, retval]

  BackColor is a parameter of type OLE_COLOR

BackColor [in]

  BackColor is a parameter of type OLE_COLOR

Product Availability

Available with ArcGIS Engine.

Description

Returns or sets the Background Color of the SymbologyControl. 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.

Errors Returned

1057 800a0421: The supplied color value is invalid

[C#]

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

axSymbologyControl1.BackColor = System.Drawing.Color.Red;

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

ISymbologyControl SymbologyControl = (ISymbologyControl) axSymbologyControl1.Object;
SymbologyControl.BackColor = 255;

[Visual Basic .NET]

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

AxSymbologyControl1.BackColor = System.Drawing.Color.Red

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

Dim SymbologyControl As ISymbologyControl = AxSymbologyControl1.Object
SymbologyControl.BackColor = Convert.ToUInt32(255)

See Also

ISymbologyControl Interface