Show / Hide Table of Contents

Class CellElement

Represents a cell in a grid

Inheritance
System.Object
DisposableObject
Element
CellElement
Implements
System.IDisposable
Inherited Members
Element.Host
Element.OwnedElements
Element.FieldControlContext
Element.ZOrder
Element.Visible
Element.Enabled
Element.MouseTransparent
Element.Region
Element.DisplayRegion
Element.Left
Element.Top
Element.Width
Element.Height
Element.MouseIsOver
Element.Tags
Element.MouseClick
Element.MouseDoubleClick
Element.MouseDown
Element.MouseUp
Element.MouseMove
Element.MouseWheel
Element.MouseEnter
Element.MouseLeave
Element.MouseDragStart
Element.MouseDrag
Element.MouseDragRelease
Element.MouseDragCancel
Element.Repaint()
Element.Invalidate()
Element.UpdateLocation(Int32, Int32)
Element.Destructor()
Element.FieldControlContextChanged()
Element.ZOrderChanged()
Element.VisibleChanged()
Element.EnabledChanged()
Element.MouseTransparentChanged()
Element.OnMouseDoubleClick(MouseEventArgs)
Element.OnMouseUp(MouseEventArgs)
Element.OnMouseMove(MouseEventArgs)
Element.OnMouseWheel(MouseEventArgs)
DisposableObject.DisposeAndNull<T>(T)
DisposableObject.DisposeStarted
DisposableObject.Disposed
DisposableObject.EnsureObjectNotDisposed()
DisposableObject.Dispose()
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: NFX.WinForms.Controls.GridKit
Assembly: NFX.WinForms.dll
Syntax
public class CellElement : Element, IDisposable

Constructors

CellElement(CellView, Object, Column)

Declaration
protected CellElement(CellView host, object row, Column column)
Parameters
Type Name Description
CellView host
System.Object row
Column column

Fields

RESIZE_WIDTH

Declaration
public const int RESIZE_WIDTH = 5
Field Value
Type Description
System.Int32

Properties

Column

References column that this cell is for

Declaration
public Column Column { get; }
Property Value
Type Description
Column

Grid

References grid

Declaration
public Grid Grid { get; }
Property Value
Type Description
Grid

Row

References row that this cell is for, null if header row

Declaration
public object Row { get; }
Property Value
Type Description
System.Object

Style

Returns a style for this cell. Cell style inherit from column style, which in turn inherits from grid style. Changing cell style does not automatically repaint the element

Declaration
public Style Style { get; }
Property Value
Type Description
Style

Value

Returns value displayed in this cell or null. You can call RepresentValueAsString(Value) to get a string representation of this cell

Declaration
public object Value { get; }
Property Value
Type Description
System.Object

Methods

DispatchSelection()

Dispatches action that this cell element was selected

Declaration
protected virtual void DispatchSelection()

OnMouseClick(MouseEventArgs)

Declaration
protected override void OnMouseClick(MouseEventArgs e)
Parameters
Type Name Description
System.Windows.Forms.MouseEventArgs e
Overrides
Element.OnMouseClick(MouseEventArgs)

OnMouseDown(MouseEventArgs)

Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Type Name Description
System.Windows.Forms.MouseEventArgs e
Overrides
Element.OnMouseDown(MouseEventArgs)

OnMouseDrag(MouseEventArgs)

Declaration
protected override void OnMouseDrag(MouseEventArgs e)
Parameters
Type Name Description
System.Windows.Forms.MouseEventArgs e
Overrides
Element.OnMouseDrag(MouseEventArgs)

OnMouseDragCancel(EventArgs)

Declaration
protected override void OnMouseDragCancel(EventArgs e)
Parameters
Type Name Description
System.EventArgs e
Overrides
Element.OnMouseDragCancel(EventArgs)

OnMouseDragRelease(MouseEventArgs)

Declaration
protected override void OnMouseDragRelease(MouseEventArgs e)
Parameters
Type Name Description
System.Windows.Forms.MouseEventArgs e
Overrides
Element.OnMouseDragRelease(MouseEventArgs)

OnMouseDragStart(MouseEventArgs)

Declaration
protected override void OnMouseDragStart(MouseEventArgs e)
Parameters
Type Name Description
System.Windows.Forms.MouseEventArgs e
Overrides
Element.OnMouseDragStart(MouseEventArgs)

OnMouseEnter(EventArgs)

Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
Type Name Description
System.EventArgs e
Overrides
Element.OnMouseEnter(EventArgs)

OnMouseLeave(EventArgs)

Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Type Name Description
System.EventArgs e
Overrides
Element.OnMouseLeave(EventArgs)

Paint(Graphics)

Declaration
protected override void Paint(Graphics gr)
Parameters
Type Name Description
System.Drawing.Graphics gr
Overrides
Element.Paint(Graphics)

PaintBackground(Graphics)

Declaration
protected virtual void PaintBackground(Graphics gr)
Parameters
Type Name Description
System.Drawing.Graphics gr

PaintBorders(Graphics)

Declaration
protected virtual void PaintBorders(Graphics gr)
Parameters
Type Name Description
System.Drawing.Graphics gr

PaintSortingArrows(Graphics, SortDirection)

Declaration
protected virtual void PaintSortingArrows(Graphics gr, SortDirection sort)
Parameters
Type Name Description
System.Drawing.Graphics gr
SortDirection sort

PaintValue(Graphics, Object)

Declaration
protected virtual void PaintValue(Graphics gr, object value)
Parameters
Type Name Description
System.Drawing.Graphics gr
System.Object value

RegionChanged()

Declaration
protected override void RegionChanged()
Overrides
Element.RegionChanged()

RepresentValueAsString(Object)

Converts/formats cell object value as string so it can be painted. This implementation relies on column to convert the value. Override to perform cell-specific conversions/formatting

Declaration
public virtual string RepresentValueAsString(object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.String

Implements

System.IDisposable

Extension Methods

MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX