C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : CellButtonImage Property |
'Declaration
<C1DescriptionAttribute("Gets or sets the image to be used in cell buttons.")> <DefaultValueAttribute()> <CategoryAttribute("Appearance")> Public Overridable Property CellButtonImage As Image
'Usage
Dim instance As C1FlexGridBase Dim value As Image instance.CellButtonImage = value value = instance.CellButtonImage
[C1Description("Gets or sets the image to be used in cell buttons.")] [DefaultValue()] [Category("Appearance")] public virtual Image CellButtonImage {get; set;}
[C1Description("Gets or sets the image to be used in cell buttons.")] [DefaultValue()] [Category("Appearance")] public: virtual property Image^ CellButtonImage { Image^ get(); void set ( Image^ value); }
This property allows you to customize the appearance of cell buttons. For details on how to create and handle cell buttons, see the CellButtonClick event.
If you want to use a single picture for all cell buttons on the grid, assign the picture to the CellButtonImage property at design time. To change pictures depending on the row, column, or cell being edited, set the picture in response to the BeforeEdit event.
The pictures used for cell buttons should fit within the button (larger pictures are truncated). They should also be transparent, so the button face can be seen through the empty parts of the picture. For best results, use small icons (16 x 16 pixels) and draw the picture in the upper left 12 x 12 rectangle within the icon.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2