Description
Sets a color cell and specifies whether the cell is ramped node.
Syntax
Ctlname.SetColorCellRampNode (int nRow, int nCol, Bool bRampNode)
Return Type
Boolean
Remarks
Use this method to set specified nRow and nCol color cell ramp node type.
nRow and nCol must be smaller than ColorBoxDimension, or the method would be failed.
After loaded a standard ramp palette file or when generated a ramp palette, the ColorCell(0,0) and ColorCell(x, y) ramp node type must be True. x, y determines by ColorBoxDimension.
This function also can implement through ColorBoxRampNodes property and SetColorCellColor method, see also ColorBoxRampNodes property and SetColorCellColor method.
More details about ramp palette functions, see also GeneratePalette and SavePalette methods.
Samples
Dim result As Boolean
result = ColorPicker1.SetColorCellRampNode(2, 5, True)
'Following result will return False
result = ColorPicker1.SetColorCellRampNode(0, 0, True)