在的UltraGrid的电池取下图像 [英] Remove image in a cell of Ultragrid
本文介绍了在的UltraGrid的电池取下图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经设置图像的单元格,我不得不删除在一定的时间点。
I have set image to a cell and i have to remove at some point of time.
// code
'Get the first cell of the first column in the grid
UltraGridCell = UltraGridRow.Cells(UltraGridColumn.Index)
If (UltraGridColumn.Hidden = False) Then
'Set the cell image
UltraGridCell.Appearance.Image = My.Resources.Tran_comment_161
UltraGridCell.Appearance.ImageHAlign = HAlign.Right
UltraGridCell.Appearance.ImageVAlign = VAlign.Top
Exit For
Else
'Code to remove the image from the cell
End If
我怎样才能做到这一点?
How can i do this?
推荐答案
刚刚尝试与
cell.Appearance.ResetImage()
实际上有一个 ResetXXXX
的方法,每外观
小区物业,或者你可以重置所有的默认值调用的一般方法
Practically there is a ResetXXXX
method for every Appearance
property of the cell, or you could Reset everything to the default values calling the general method
cell.Appearance.Reset()
这篇关于在的UltraGrid的电池取下图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文