GetColorCellColor Method

Description

Gets a color cell value and determines whether the cell is ramped node.

Syntax

Ctlname.GetColorCellColor (int nRow, int nCol, OLE_COLOR nColor, Bool bRampNode)

Return Type

Boolean

Remarks

Use this method to get color cell color from specified nRow and nCol, and return the color cell value and ramp node type, parameter nColor reference to receive color cell color value and parameter bRampNode reference to receive the type.

nRow and nCol must be smaller than ColorBoxDimension, or the method would be failed.

Samples

' assume ColorBoxDimension is cc8x8

Dim bNode As Boolean, color As OLE_COLOR

If ColorPicker1.GetColorCellColor(3, 1, color, bNode) then

Picture1.BackColor = color

End if