Class VirtualizingCellsControl
Represents a record row in a SfDataGrid control.
Inheritance
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.Android.dll
Syntax
public class VirtualizingCellsControl : FrameLayout
  Constructors
VirtualizingCellsControl(Context)
Initializes a new instance of the VirtualizingCellsControl class.
Declaration
public VirtualizingCellsControl(Context context)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Android.Content.Context | context | The Android.Content.Context.  | 
      
Properties
ClipRect
Gets or sets the clip value of the record row.
Declaration
public Rect ClipRect { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Android.Graphics.Rect | The clip value of the record row.  | 
      
DataContext
Gets or sets the data context of the record row.
Declaration
public object DataContext { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Object | The data context of the record row.  | 
      
DataGrid
Gets the instance of the SfDataGrid control.
Declaration
public SfDataGrid DataGrid { get; }
  Property Value
| Type | Description | 
|---|---|
| SfDataGrid | The instance of the SfDataGrid control.  | 
      
IsSwipeCancelled
Gets or sets a value indicating whether to cancel swipe or not.
Declaration
public virtual bool IsSwipeCancelled { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | True if the swipe is canceled, otherwise false.  | 
      
SwipeDirection
Gets or sets the direction of the swiping in the row.
Declaration
public SwipeDirection SwipeDirection { get; set; }
  Property Value
| Type | Description | 
|---|---|
| SwipeDirection | The SwipeDirection in the row.  | 
      
SwipeOffset
Gets or sets the current offset of the row.
Declaration
public int SwipeOffset { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | The current offset of the row.  | 
      
Methods
Dispose(Boolean)
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | disposing | if true - release both managed and unmanaged resources; if false - release only unmanaged resources.  | 
      
OnDraw(Canvas)
The borders for the virtualizing cell is drawn here.
Declaration
protected override void OnDraw(Canvas canvas)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Android.Graphics.Canvas | canvas | The Android.Graphics.Canvas on which the background will be drawn.  | 
      
OnLayout(Boolean, Int32, Int32, Int32, Int32)
Positions and sizes the content of a virtualizing cells control.
Declaration
protected override void OnLayout(bool changed, int left, int top, int right, int bottom)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | changed | True if the size of the view is changed, otherwise false.  | 
      
| System.Int32 | left | A value that represents the x coordinate of the child.  | 
      
| System.Int32 | top | A value that represents the y coordinate of the child.  | 
      
| System.Int32 | right | A value that represents the width of the child.  | 
      
| System.Int32 | bottom | A value that represents the height of the child.  | 
      
OnMeasure(Int32, Int32)
Raises the measure event.
Declaration
protected override void OnMeasure(int widthMeasureSpec, int heightMeasureSpec)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | widthMeasureSpec | Width measure spec.  | 
      
| System.Int32 | heightMeasureSpec | Height measure spec.  | 
      
OnTouchEvent(MotionEvent)
This method handles the touch event.
Declaration
public override bool OnTouchEvent(MotionEvent e)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Android.Views.MotionEvent | e | The Android.Views.MotionEvent.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | Returns a boolean value indicating whether the touch is handled or not.  |