Description
Gets a color cell from assorted data.
Syntax
Ctlname.GetColorCellData (int nRow, int nCol, tagColorCells lpCellData)
Return Type
Boolean
Remarks
Use this method to get a color cell assorted data with tagColorCells structure, which contains Color, Ramp Node type and Tooltip information, this parameter references to receive the color cell information. nRow and nCol must be smaller than ColorBoxDimension, or the method would return False.
See also tagColorCells structure.
Refer to other related methods with Color, Ramp node type and tooltip.
Samples
' assume ColorBoxDimension is cc8x8
Dim colorcelldata As tagColorCells
If ColorPicker1.GetColorCellData(3, 1, colorcelldata) then
Picture1.BackColor = colorcelldata.Color
Picture1.Tooltip = colorcelldata.Tooltip
End if