Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridCell

    Show / Hide Table of Contents

    Class GridCell

    Represents a record cell in a SfDataGrid control.

    Inheritance
    System.Object
    BorderView
    CellElement
    GridCell
    GridCaptionSummaryCell
    GridGroupSummaryCell
    GridIndentCell
    GridRowHeaderCell
    GridTableSummaryCell
    GridUnboundRowCell
    Implements
    System.IDisposable
    Inherited Members
    CellElement.NeedToInvalidateProperty
    CellElement.ShouldInvalidateOnChildAdded(View)
    CellElement.ShouldInvalidateOnChildRemoved(View)
    CellElement.NeedToInvalidate
    BorderView.VisibilityProperty
    BorderView.BorderColorProperty
    BorderView.BorderThicknessProperty
    BorderView.Dispose()
    BorderView.Dispose(Boolean)
    BorderView.Visibility
    BorderView.BorderColor
    BorderView.BorderThickness
    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 Description
    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 Description
    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 Description
    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 Description
    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 Description
    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
    CellElement.OnBindingContextChanged()

    OnChildMeasureInvalidated()

    Invoked whenever a child of the layout has emitted Xamarin.Forms.VisualElement.MeasureInvalidated.

    Declaration
    protected override void OnChildMeasureInvalidated()

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved