FlexPivot for WinForms
SetCellImage(Int32,String,Image) メソッド

C1.Win.C1FlexGrid.4.5.2 アセンブリ > C1.Win.C1FlexGrid 名前空間 > C1FlexGridBase クラス > SetCellImage メソッド : SetCellImage(Int32,String,Image) メソッド
Row index.
Column name.
An System.Drawing.Image object containing an image to display in the cell.
Sets the image displayed in a grid cell.
シンタックス
'宣言
 
Public Overloads Sub SetCellImage( _
   ByVal row As System.Integer, _
   ByVal colName As System.String, _
   ByVal newImage As System.Drawing.Image _
) 
public void SetCellImage( 
   System.int row,
   System.string colName,
   System.Drawing.Image newImage
)

パラメータ

row
Row index.
colName
Column name.
newImage
An System.Drawing.Image object containing an image to display in the cell.
解説

In addition to the usual cell contents, you can display images in cells. There are two methods for showing images in cells:

1. You can use the SetCellImage(Int32,String,Image) and GetCellImage(Int32,String) methods to assign images directly to the cells. In this case, the cell contents and the image are independent. To update the image, you need to call SetCellImage(Int32,String,Image) again.

2. You can use the ImageMap property to associate images with specific cell values. In this case, images are updated automatically whenever the cell contents change. The RowCol.ImageAndText property allows you to specify whether the control should display the images in addition to or instead of the cell text.

参照

C1FlexGridBase クラス
C1FlexGridBase メンバ
オーバーロード一覧