在的UltraGrid的电池取下图像取下、图像、电池、UltraGrid

2023-09-07 08:57:00 作者:感情淡了*快加鹽

我已经设置图像的单元格,我不得不删除在一定的时间点。

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()