Class GridCell
Represents a record cell in a SfDataGrid control.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.SfDataGrid.XForms
Assembly: Syncfusion.SfDataGrid.XForms.dll
Syntax
public class GridCell : CellElement, IVisibility, IDisposable
Constructors
GridCell()
Initializes a new instance of the GridCell class.
Declaration
public GridCell()
Fields
CellStylingPreferenceProperty
Identifies the CellStylingPreference Xamarin.Forms.BindableProperty.
Declaration
public static readonly BindableProperty CellStylingPreferenceProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Remarks
This Xamarin.Forms.BindableProperty is read-only.
CellValueProperty
Identifies the CellValue Xamarin.Forms.BindableProperty.
Declaration
public static readonly BindableProperty CellValueProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Remarks
This Xamarin.Forms.BindableProperty is read-only.
ClipProperty
Identifies the Clip Xamarin.Forms.BindableProperty.
Declaration
public static readonly BindableProperty ClipProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Remarks
This Xamarin.Forms.BindableProperty is read-only.
ForegroundProperty
Identifies the Foreground Xamarin.Forms.BindableProperty.
Declaration
public static readonly BindableProperty ForegroundProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Remarks
This Xamarin.Forms.BindablePropertyis read-only.
Properties
CellStylingPreference
Gets or sets the CellStylingPreference of the GridCell.
Declaration
public StylePreference CellStylingPreference { get; set; }
Property Value
Type |
---|
StylePreference |
CellValue
Gets the cell value of the GridCell.
Declaration
public object CellValue { get; }
Property Value
Type | Description |
---|---|
System.Object | An object that represents the cell value of the GridCell. |
Clip
Gets or sets the clip value of the GridCell.
Declaration
public Rectangle Clip { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.Rectangle | An object that represents the clipping value of the GridCell. |
ColumnIndex
Gets the column index of the GridCell.
Declaration
public int ColumnIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | A value that determines the column index of the GridCell. |
DataColumn
Gets the data column associated with the grid cell which contains the details of the column.
Declaration
public DataColumnBase DataColumn { get; }
Property Value
Type | Description |
---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | An object that represents the Syncfusion.SfDataGrid.XForms.DataColumn associated with the GridCell, which contains the details of the column. |
Foreground
Gets or sets the foreground color of the GridCell.
Declaration
public Color Foreground { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.Color | A Xamarin.Forms.Color object that represents the foreground color of the GridCell. |
RowIndex
Gets the row index of the GridCell.
Declaration
public int RowIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | A value that determines the row index of the GridCell. |
Methods
LayoutChildren(Double, Double, Double, Double)
Positions and sizes the Content of a GridCell.
Declaration
protected override void LayoutChildren(double x, double y, double width, double height)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | A value that represents the x coordinate of the child. |
System.Double | y | A value that represents the y coordinate of the child. |
System.Double | width | A value that represents the width of the child. |
System.Double | height | A value that represents the height of the child. |
OnBindingContextChanged()
Invoked whenever the binding context of the GridCell changes.
Declaration
protected override void OnBindingContextChanged()
Overrides
OnChildMeasureInvalidated()
Invoked whenever a child of the layout has emitted Xamarin.Forms.VisualElement.MeasureInvalidated.
Declaration
protected override void OnChildMeasureInvalidated()