Icon Button Cell

Represents a cell that displays a LSOne.Controls.IconButton (an image that has a tooltip associated with and optionally can be clicked)

Namespace: LSOne.Controls.Cells

Assembly: LSOne.Controls.ListView

Syntax

public class IconButtonCell : Cell

Icon button cell

Constructors

Name Description
IconButtonCell(LSOne.Controls.IconButton, LSOne.Controls.Cells.IconButtonCell.IconButtonIconAlignmentEnum)

Initializes a new instance of the IconButtonCell class with the given IconButton and icon alignment.

Icon alignment values can be:

  • Left
  • Right
  • HorizontalCenter
  • Top
  • Bottom
  • VerticalCenter
  • any combination of the values above
IconButtonCell(LSOne.Controls.IconButton, LSOne.Controls.Cells.IconButtonCell.IconButtonIconAlignmentEnum, string) Initializes a new instance of the IconButtonCell class with the given IconButton, icon alignment and text
IconButtonCell(LSOne.Controls.IconButton, LSOne.Controls.Cells.IconButtonCell.IconButtonIconAlignmentEnum, string text, bool) Initializes a new instance of the IconButtonCell class with the given IconButton, icon alignment, text and enable state

Properties

Name Description
ShowOnlyIconsWhenSelected Gets or sets if the cell responds to mouse clicks
Tag Deprecated

Methods

Name Description
Add(LSOne.Controls.IconButton) Adds an new IconButton next to the current one.
SetEnabled(int, bool) Enables or disables the IconButton that has the given index.

Remarks

Base class for Icon Button Numeric Cell

Examples

 

See Source\SM\Plugins\Customer\Dialogs\CustomersInGroupMultiEditDialog.cs or Source\SM\Plugins\Customer\ViewPages\CustomerGroupsPage.cs from DevPack for usage examples.

 


var button = new IconButton(Properties.Resources.RevertSmallImage, Properties.Resources.Undo, true);
row.AddCell(new IconButtonCell(button, IconButtonCell.IconButtonIconAlignmentEnum.Right, "", false));

See also