在的UltraGrid的小区中删除图像(Remove image in a cell of Ultr

2019-10-18 04:01发布

我已经设定图像的单元,我有在某个时间点去除。

//码

                   '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

我怎样才能做到这一点?

Answer 1:

只是尝试

cell.Appearance.ResetImage()

实际上有一个ResetXXXX每个方法Appearance细胞的财产,或者你可以重置所有默认值调用的一般方法

cell.Appearance.Reset()


文章来源: Remove image in a cell of Ultragrid