RatingCell Class

This data grid view cell type shows a set of images (stars by default) that represent a rating similar to the one found in Windows Media Player.

Definition

Namespace: EWSoftware.ListControls.DataGridViewControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
public class RatingCell : BaseImageCell
Inheritance
Object    DataGridViewElement    DataGridViewCell    DataGridViewImageCell    BaseImageCell    RatingCell

Constructors

RatingCell Constructor

Properties

AccessibilityObjectGets the DataGridViewCellDataGridViewCellAccessibleObject assigned to the DataGridViewCell.
(Inherited from DataGridViewCell)
ColumnIndexGets the column index for this cell.
(Inherited from DataGridViewCell)
ContentBoundsGets the bounding rectangle that encloses the cell's content area.
(Inherited from DataGridViewCell)
ContextMenuStripGets or sets the shortcut menu associated with the cell.
(Inherited from DataGridViewCell)
DataGridViewGets the DataGridView control associated with this element.
(Inherited from DataGridViewElement)
DefaultNewRowValueGets the default value that is used when creating a new row.
(Inherited from DataGridViewImageCell)
DescriptionGets or sets the text associated with the image.
(Inherited from DataGridViewImageCell)
DisplayedGets a value that indicates whether the cell is currently displayed on-screen.
(Inherited from DataGridViewCell)
EditedFormattedValueGets the current, formatted value of the cell, regardless of whether the cell is in edit mode and the value has not been committed.
(Inherited from DataGridViewCell)
EditingCellFormattedValue Gets or sets the formatted value of the cell
(Inherited from BaseImageCell)
EditingCellValueChanged Gets or sets a value indicating whether the value of the cell has changed
(Inherited from BaseImageCell)
EditTypeGets the type of the cell's hosted editing control.
(Inherited from DataGridViewImageCell)
ErrorIconBoundsGets the bounds of the error icon for the cell.
(Inherited from DataGridViewCell)
ErrorTextGets or sets the text describing an error condition associated with the cell.
(Inherited from DataGridViewCell)
FormattedValueGets the value of the cell as formatted for display.
(Inherited from DataGridViewCell)
FormattedValueType This is overridden to return Object as the formatted value type
(Inherited from BaseImageCell)
FrozenGets a value indicating whether the cell is frozen.
(Inherited from DataGridViewCell)
HasStyleGets a value indicating whether the Style property has been set.
(Inherited from DataGridViewCell)
ImageLayoutGets or sets the graphics layout for the cell.
(Inherited from DataGridViewImageCell)
InheritedStateGets the current state of the cell as inherited from the state of its row and column.
(Inherited from DataGridViewCell)
InheritedStyleGets the style currently applied to the cell.
(Inherited from DataGridViewCell)
IsInEditModeGets a value indicating whether this cell is currently being edited.
(Inherited from DataGridViewCell)
MouseRating This read-only property returns the rating currently under the mouse
NewValue This is used to set or get the edited cell value
(Inherited from BaseImageCell)
OriginalValue This read-only property returns the original cell value prior to editing
(Inherited from BaseImageCell)
OwningColumnGets the column that contains this cell.
(Inherited from DataGridViewCell)
OwningRowGets the row that contains this cell.
(Inherited from DataGridViewCell)
PreferredSizeGets the size, in pixels, of a rectangular area into which the cell can fit.
(Inherited from DataGridViewCell)
ReadOnlyGets or sets a value indicating whether the cell's data can be edited.
(Inherited from DataGridViewCell)
ResizableGets a value indicating whether the cell can be resized.
(Inherited from DataGridViewCell)
RowIndexGets the index of the cell's parent row.
(Inherited from DataGridViewCell)
SelectedGets or sets a value indicating whether the cell has been selected.
(Inherited from DataGridViewCell)
SizeGets the size of the cell.
(Inherited from DataGridViewCell)
StateGets the user interface (UI) state of the element.
(Inherited from DataGridViewElement)
StyleGets or sets the style for the cell.
(Inherited from DataGridViewCell)
TagGets or sets the object that contains supplemental data about the cell.
(Inherited from DataGridViewCell)
ToolTipTextGets or sets the ToolTip text associated with this cell.
(Inherited from DataGridViewCell)
ValueGets or sets the value associated with this cell.
(Inherited from DataGridViewCell)
ValueIsIconGets or sets a value indicating whether this cell displays an Icon value.
(Inherited from DataGridViewImageCell)
ValueTypeGets or sets the data type of the values in the cell.
(Inherited from DataGridViewImageCell)
VisibleGets a value indicating whether the cell is in a row or column that has been hidden.
(Inherited from DataGridViewCell)

Methods

AdjustCellBorderStyleModifies the input cell border style according to the specified criteria.
(Inherited from DataGridViewCell)
BorderWidthsReturns a Rectangle that represents the widths of all the cell margins.
(Inherited from DataGridViewCell)
ClickUnsharesRowIndicates whether the cell's row will be unshared when the cell is clicked.
(Inherited from DataGridViewCell)
Clone Clone the cell
(Overrides DataGridViewImageCellClone)
ContentClickUnsharesRow Indicates whether the cell's row will be unshared when the cell's content is clicked
(Inherited from BaseImageCell)
ContentDoubleClickUnsharesRow Indicates whether the cell's row will be unshared when the cell's content is double-clicked
(Inherited from BaseImageCell)
CreateAccessibilityInstanceCreates a new accessible object for the DataGridViewImageCell.
(Inherited from DataGridViewImageCell)
DetachEditingControlRemoves the cell's editing control from the DataGridView.
(Inherited from DataGridViewCell)
DisposeReleases all resources used by the DataGridViewCell.
(Inherited from DataGridViewCell)
Dispose(Boolean)Releases the unmanaged resources used by the DataGridViewCell and optionally releases the managed resources.
(Inherited from DataGridViewCell)
DoubleClickUnsharesRowIndicates whether the cell's row will be unshared when the cell is double-clicked.
(Inherited from DataGridViewCell)
EnterUnsharesRowIndicates whether the parent row will be unshared when the focus moves to the cell.
(Inherited from DataGridViewCell)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeReleases the unmanaged resources and performs other cleanup operations before the DataGridViewCell is reclaimed by garbage collection.
(Inherited from DataGridViewCell)
GetCellImage Gets the image to display in the cell
(Overrides BaseImageCellGetCellImage(Object, Int32))
GetClipboardContentRetrieves the formatted value of the cell to copy to the Clipboard.
(Inherited from DataGridViewCell)
GetContentBounds(Int32)Returns the bounding rectangle that encloses the cell's content area using a default Graphics and cell style currently in effect for the cell.
(Inherited from DataGridViewCell)
GetContentBounds(Graphics, DataGridViewCellStyle, Int32) Returns the bounding rectangle that encloses the cell's content area, which is calculated using the specified graphics context and cell style.
(Overrides DataGridViewImageCellGetContentBounds(Graphics, DataGridViewCellStyle, Int32))
GetEditedFormattedValueReturns the current, formatted value of the cell, regardless of whether the cell is in edit mode and the value has not been committed.
(Inherited from DataGridViewCell)
GetEditingCellFormattedValue Retrieves the formatted value of the cell
(Inherited from BaseImageCell)
GetErrorIconBoundsReturns the bounding rectangle that encloses the cell's error icon, if one is displayed.
(Inherited from DataGridViewImageCell)
GetErrorTextReturns a string that represents the error for the cell.
(Inherited from DataGridViewCell)
GetFormattedValue Gets the formatted value of the cell's data
(Inherited from BaseImageCell)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetInheritedContextMenuStripGets the inherited shortcut menu for the current cell.
(Inherited from DataGridViewCell)
GetInheritedStateReturns a value indicating the current state of the cell as inherited from the state of its row and column.
(Inherited from DataGridViewCell)
GetInheritedStyleGets the style applied to the cell.
(Inherited from DataGridViewCell)
GetPreferredSize Calculates the preferred size, in pixels, of the cell
(Overrides DataGridViewImageCellGetPreferredSize(Graphics, DataGridViewCellStyle, Int32, Size))
GetSizeGets the size of the cell.
(Inherited from DataGridViewCell)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetValueGets the value of the cell.
(Inherited from DataGridViewImageCell)
InitializeEditingControlInitializes the control used to edit the cell.
(Inherited from DataGridViewCell)
KeyDownUnsharesRow Indicates whether the parent row is unshared if the user presses a key while the focus is on the cell
(Overrides DataGridViewCellKeyDownUnsharesRow(KeyEventArgs, Int32))
KeyEntersEditModeDetermines if edit mode should be started based on the given key.
(Inherited from DataGridViewCell)
KeyPressUnsharesRowIndicates whether a row will be unshared if a key is pressed while a cell in the row has focus.
(Inherited from DataGridViewCell)
KeyUpUnsharesRow Indicates whether the parent row is unshared if the user releases a key while the focus is on the cell.
(Overrides DataGridViewCellKeyUpUnsharesRow(KeyEventArgs, Int32))
LeaveUnsharesRowIndicates whether a row will be unshared when the focus leaves a cell in the row.
(Inherited from DataGridViewCell)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
MouseClickUnsharesRowIndicates whether a row will be unshared if the user clicks a mouse button while the pointer is on a cell in the row.
(Inherited from DataGridViewCell)
MouseDoubleClickUnsharesRowIndicates whether a row will be unshared if the user double-clicks a cell in the row.
(Inherited from DataGridViewCell)
MouseDownUnsharesRow Indicates whether a row will be unshared when the user holds down a mouse button while the pointer is on a cell in the row.
(Inherited from BaseImageCell)
MouseEnterUnsharesRow Indicates whether a row will be unshared when the mouse pointer moves over a cell in the row
(Inherited from BaseImageCell)
MouseLeaveUnsharesRowIndicates whether a row will be unshared when the mouse pointer leaves the row.
(Inherited from DataGridViewCell)
MouseMoveUnsharesRowIndicates whether a row will be unshared when the mouse pointer moves over a cell in the row.
(Inherited from DataGridViewCell)
MouseUpUnsharesRow Indicates whether a row will be unshared when the user releases a mouse button while the pointer is on a cell in the row.
(Inherited from BaseImageCell)
OnClickCalled when the cell is clicked.
(Inherited from DataGridViewCell)
OnContentClick This is overridden to update the cell value with a new rating value when it is clicked
(Overrides DataGridViewCellOnContentClick(DataGridViewCellEventArgs))
OnContentDoubleClickCalled when the cell's contents are double-clicked.
(Inherited from DataGridViewCell)
OnDataGridViewChangedCalled when the DataGridView property of the cell changes.
(Inherited from DataGridViewCell)
OnDoubleClickCalled when the cell is double-clicked.
(Inherited from DataGridViewCell)
OnEnterCalled when the focus moves to a cell.
(Inherited from DataGridViewCell)
OnKeyDown This is overridden to handle digit 0 through 9 and +/- key presses
(Overrides DataGridViewCellOnKeyDown(KeyEventArgs, Int32))
OnKeyPressCalled when a key is pressed while the focus is on a cell.
(Inherited from DataGridViewCell)
OnKeyUp This is handled to raise the CellClick and CellContentClick events when one of the digit keys 0 thorough 9 or + or - is released.
(Overrides DataGridViewCellOnKeyUp(KeyEventArgs, Int32))
OnLeaveCalled when the focus moves from a cell.
(Inherited from DataGridViewCell)
OnMouseClickCalled when the user clicks a mouse button while the pointer is on a cell.
(Inherited from DataGridViewCell)
OnMouseDoubleClickCalled when the user double-clicks a mouse button while the pointer is on a cell.
(Inherited from DataGridViewCell)
OnMouseDownCalled when the user holds down a mouse button while the pointer is on a cell.
(Inherited from DataGridViewCell)
OnMouseEnterCalled when the mouse pointer moves over a cell.
(Inherited from DataGridViewCell)
OnMouseLeave Change the mouse cursor back to the default when leaving the cell
(Overrides DataGridViewCellOnMouseLeave(Int32))
OnMouseMove Change the mouse pointer to a hand when the mouse moves over one of the images
(Overrides DataGridViewCellOnMouseMove(DataGridViewCellMouseEventArgs))
OnMouseUpCalled when the user releases a mouse button while the pointer is on a cell.
(Inherited from DataGridViewCell)
Paint This is overridden to paint the cell value based on whether or not it is in edit mode
(Inherited from BaseImageCell)
PaintBorderPaints the border of the current DataGridViewCell.
(Inherited from DataGridViewCell)
PaintErrorIconPaints the error icon of the current DataGridViewCell.
(Inherited from DataGridViewCell)
ParseFormattedValue This is overridden to return the appropriate value for the cell when it is being edited
(Inherited from BaseImageCell)
PositionEditingControlSets the location and size of the editing control hosted by a cell in the DataGridView control.
(Inherited from DataGridViewCell)
PositionEditingPanelSets the location and size of the editing panel hosted by the cell, and returns the normal bounds of the editing control within the editing panel.
(Inherited from DataGridViewCell)
PrepareEditingCellForEdit For this cell type, this method does nothing
(Inherited from BaseImageCell)
RaiseCellClickRaises the CellClick event.
(Inherited from DataGridViewElement)
RaiseCellContentClickRaises the CellContentClick event.
(Inherited from DataGridViewElement)
RaiseCellContentDoubleClickRaises the CellContentDoubleClick event.
(Inherited from DataGridViewElement)
RaiseCellValueChangedRaises the CellValueChanged event.
(Inherited from DataGridViewElement)
RaiseDataErrorRaises the DataError event.
(Inherited from DataGridViewElement)
RaiseMouseWheelRaises the MouseWheel event.
(Inherited from DataGridViewElement)
SetValueSets the value of the cell.
(Inherited from DataGridViewCell)
ToStringReturns a string that describes the current object.
(Inherited from DataGridViewImageCell)

See Also