com.esri.arcgis.framework
Interface ICustomColorPalette

All Superinterfaces:
Serializable
All Known Implementing Classes:
ColorPalette

public interface ICustomColorPalette
extends Serializable

Provides access to members that control the Setting or Creating of a Custom Color Palette.

Description

The ICustomColorPalette interface allows you to determine exactly which colors will be shown on the ColorPalette menu, instead of displaying the colors defined in the current Styles.

Remarks

The following example shows how to display a ColorPalette with three simple colors. You would get m_app from the hook in ICommand::OnCreate().

Product Availability

Available with ArcGIS Desktop.


Method Summary
 void setColorSetByRef(ISet rhs1)
          The Color Objects.
 

Method Detail

setColorSetByRef

void setColorSetByRef(ISet rhs1)
                      throws IOException,
                             AutomationException
The Color Objects.

Remarks

Set the ColorSet to a Set coclass. The Set coclass, which supports the ISet interface required by the ColorSet property, should contain the Color objects you wish to display.

Note that since the ISet.Add method passes the item by reference, youmust create a new color object to pass into the method each time.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
rhs1 - A reference to a com.esri.arcgis.system.ISet (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.