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


IColorPalette.Color Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Framework)  

IColorPalette.Color Property

The Selected Color.

[Visual Basic .NET]
Public ReadOnly Property Color As IColor
[C#]
public IColor Color {get;}

Product Availability

Available with ArcGIS Desktop.

Description

The Color property of the IColorPalette interface returns the color selected during the TrackPopupMenu method.

Remarks

The Color property may return the IColor interface of either an RgbColor, HsvColor, HlsColor, CmykColor or GrayColor coclass.

If  the user selects a specific color, the Color property will return that selected color. If  the user selects the More Colors option and selects a color from the ColorSelector that is then displayed, the IColorPalette Color property will return that color.

See Also

IColorPalette Interface | IColorPalette.TrackPopupMenu Method