Class VisualContainer
Represents a container that holds the row elements in a SfDataGrid control.
Inheritance
Implements
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.Android.dll
Syntax
public class VisualContainer : FrameLayout, IScrollViewportChanged
Constructors
VisualContainer(Context)
Initializes a new instance of the VisualContainer class.
Declaration
public VisualContainer(Context context)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | The Android.Content.Context. |
VisualContainer(Context, IAttributeSet)
Initializes a new instance of the VisualContainer class.
Declaration
public VisualContainer(Context context, IAttributeSet attributeSet)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | The Android.Content.Context. |
Android.Util.IAttributeSet | attributeSet | The Android.Util.IAttributeSet. |
VisualContainer(Context, IAttributeSet, Int32)
Initializes a new instance of the VisualContainer class.
Declaration
public VisualContainer(Context context, IAttributeSet attributeSet, int numb)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | The Android.Content.Context. |
Android.Util.IAttributeSet | attributeSet | The Android.Util.IAttributeSet. |
System.Int32 | numb | The value indicating the def style attribute. |
Properties
ColumnCount
Gets or sets the column count in the SfDataGrid control.
Declaration
public int ColumnCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The column count in the SfDataGrid control. |
ColumnWidths
Gets the columns width from the LineSizeCollection.
Declaration
public IPaddedEditableLineSizeHost ColumnWidths { get; }
Property Value
Type | Description |
---|---|
IPaddedEditableLineSizeHost | The columns width from the LineSizeCollection. |
ExtentHeight
Gets the extent height of a SfDataGrid control.
Declaration
public double ExtentHeight { get; }
Property Value
Type | Description |
---|---|
System.Double | The extent height of a SfDataGrid control. |
ExtentWidth
Gets the extent width of a SfDataGrid control.
Declaration
public double ExtentWidth { get; }
Property Value
Type | Description |
---|---|
System.Double | The extent width of a SfDataGrid control. |
FooterColumns
Gets or sets the frozen columns count to freeze the columns at the right.
Declaration
public int FooterColumns { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The frozen columns count to freeze the columns at the right. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Negative values are not allowed. |
FooterRows
Gets or sets the frozen rows count to freeze the rows at the bottom.
Declaration
public int FooterRows { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The frozen rows count to freeze the rows at the bottom. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Negative values are not allowed. |
FrozenColumns
Gets or sets the frozen columns count to freeze the columns at the left, next to RowHeader if ShowRowHeader is true.
Declaration
public int FrozenColumns { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The frozen columns count to freeze the columns at the left, next to RowHeader if ShowRowHeader is true. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Negative values are not allowed. |
FrozenRows
Gets or sets the frozen rows count to freeze the rows at the top below header.
Declaration
public int FrozenRows { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The frozen rows count to freeze the rows at the top below header. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Negative values are not allowed. |
HorizontalOffset
Gets or sets the horizontal offset of a SfDataGrid control.
Declaration
public double HorizontalOffset { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The horizontal offset of a SfDataGrid control. |
HorizontalPixelScroll
Gets or sets a value indicating whether horizontal scrolling is performed in pixel mode.
Declaration
public bool HorizontalPixelScroll { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean value indicating whether horizontal scrolling is performed in pixel mode. |
HScrollBar
Gets a reference to the class that implements IScrollBar which contains the horizontal scroll bar information.
Declaration
public IScrollBar HScrollBar { get; }
Property Value
Type | Description |
---|---|
IScrollBar | A reference to the class that implements IScrollBar which contains the horizontal scroll bar information. |
IsChildInSwipe
Gets or sets a value indicating whether any child is in swipe.
Declaration
public bool IsChildInSwipe { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean value indicating whether any child is in swipe. |
NeedToRefreshColumn
Gets or sets a value indicating whether to refresh the columns.
Declaration
public bool NeedToRefreshColumn { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean value denoting whether to refresh the columns. |
RowCount
Gets or sets the row count in the SfDataGrid control.
Declaration
public int RowCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The row count in the SfDataGrid control. |
RowGenerator
Gets or sets a reference to the class that implements IRowGenerator.
Declaration
public IRowGenerator RowGenerator { get; set; }
Property Value
Type | Description |
---|---|
IRowGenerator | A reference to the class that implements IRowGenerator. |
RowHeightManager
Gets or sets a reference to the RowHeightManager instance that manages the row heights in a SfDataGrid control.
Declaration
public RowHeightManager RowHeightManager { get; set; }
Property Value
Type | Description |
---|---|
RowHeightManager | A reference to the RowHeightManager instance that manages the row heights in a SfDataGrid control. |
RowHeights
Gets the rows height from the LineSizeCollection.
Declaration
public IPaddedEditableLineSizeHost RowHeights { get; }
Property Value
Type | Description |
---|---|
IPaddedEditableLineSizeHost | The rows height from the LineSizeCollection. |
RowsGenerator
Gets a reference to the class that implements IRowGenerator.
Declaration
public IRowGenerator RowsGenerator { get; }
Property Value
Type |
---|
IRowGenerator |
ScrollColumns
Gets a reference to the ScrollAxisBase instance which contains the information of column lines in a SfDataGrid control.
Declaration
public ScrollAxisBase ScrollColumns { get; }
Property Value
Type | Description |
---|---|
ScrollAxisBase | A reference to the ScrollAxisBase instance which contains the information of column lines in a SfDataGrid control. |
ScrollerHeight
Gets the height of the ScrollView in a SfDataGrid control.
Declaration
public double ScrollerHeight { get; }
Property Value
Type | Description |
---|---|
System.Double | The height of the ScrollView in a SfDataGrid control. |
ScrollerWidth
Gets the width of the ScrollView in a SfDataGrid control.
Declaration
public double ScrollerWidth { get; }
Property Value
Type | Description |
---|---|
System.Double | The width of the ScrollView in a SfDataGrid control. |
ScrollOwner
Gets the reference to the Syncfusion.SfDataGrid.ScrollViewer instance.
Declaration
public ScrollViewer ScrollOwner { get; }
Property Value
Type | Description |
---|---|
Syncfusion.SfDataGrid.ScrollViewer | A reference to the Syncfusion.SfDataGrid.ScrollViewer instance. |
ScrollRows
Gets a reference to the ScrollAxisBase instance which contains the information of row lines in a SfDataGrid control.
Declaration
public ScrollAxisBase ScrollRows { get; }
Property Value
Type | Description |
---|---|
ScrollAxisBase | A reference to the ScrollAxisBase instance which contains the information of row lines in a SfDataGrid control. |
VerticalOffset
Gets or sets the vertical offset of a SfDataGrid control.
Declaration
public double VerticalOffset { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The vertical offset of a SfDataGrid control. |
VerticalPixelScroll
Gets or sets a value indicating whether vertical scrolling is performed in pixel mode.
Declaration
public bool VerticalPixelScroll { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean value indicating whether vertical scrolling is performed in pixel mode. |
ViewportHeight
Gets the height of the view port in the visual container.
Declaration
public double ViewportHeight { get; }
Property Value
Type | Description |
---|---|
System.Double | The height of the view port in the visual container. |
ViewportWidth
Gets the width of the view port in the visual container.
Declaration
public double ViewportWidth { get; }
Property Value
Type | Description |
---|---|
System.Double | The width of the view port in the visual container. |
VScrollBar
Gets a reference to the class that implements IScrollBar which contains the vertical scroll bar information.
Declaration
public IScrollBar VScrollBar { get; }
Property Value
Type | Description |
---|---|
IScrollBar | A reference to the class that implements IScrollBar which contains the vertical scroll bar information. |
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. |
InsertColumns(Int32, Int32)
Inserts the columns in the given column index.
Declaration
public void InsertColumns(int insertAtColumnIndex, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | insertAtColumnIndex | The column index to insert the columns. |
System.Int32 | count | The count of the columns to be inserted. |
InsertRows(Int32, Int32)
Inserts the rows in the given row index.
Declaration
public void InsertRows(int insertAtRowIndex, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | insertAtRowIndex | The index to insert the rows. |
System.Int32 | count | The count of the rows to be inserted. |
OnCreateColumnWidths()
Creates a new instance of LineSizeCollection for creating the column widths.
Declaration
protected IPaddedEditableLineSizeHost OnCreateColumnWidths()
Returns
Type | Description |
---|---|
IPaddedEditableLineSizeHost | A new instance of LineSizeCollection for creating the column widths. |
OnCreateRowHeights()
Creates a new instance of LineSizeCollection for creating the row heights.
Declaration
protected IPaddedEditableLineSizeHost OnCreateRowHeights()
Returns
Type | Description |
---|---|
IPaddedEditableLineSizeHost | A new instance of LineSizeCollection for creating the row heights. |
OnLayout(Boolean, Int32, Int32, Int32, Int32)
Arranges the RowPanels inside the VisualContainer.
Declaration
protected override void OnLayout(bool changed, int left, int top, int right, int bottom)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | changed | Indicates whether the layout has changed or not. |
System.Int32 | left | The current extreme left position of the VisualContainer. |
System.Int32 | top | The current top position of the VisualContainer. |
System.Int32 | right | The current right extreme position of the VisualContainer. |
System.Int32 | bottom | The current bottom position of the VisualContainer. |
OnMeasure(Int32, Int32)
Creates the RowPanels and GridCells for the first time and ensure them every time the measure is hit. Measures the constraint of the child and send the Measured dimensions to the super to adjust the scrolling area.
Declaration
protected override void OnMeasure(int widthMeasureSpec, int heightMeasureSpec)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | widthMeasureSpec | The width of the visual container. Initially assigned the value of view width. |
System.Int32 | heightMeasureSpec | The height of the visual container. Initially assigned the value of the view height. |
OnScrollViewportChanged(Int32, Int32, Int32, Int32)
Occurs when the scroll view port is changed.
Declaration
public void OnScrollViewportChanged(int left, int top, int right, int bottom)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | The port change in the left position. |
System.Int32 | top | The port change in the top position. |
System.Int32 | right | The port change in the right position. |
System.Int32 | bottom | The port change in the bottom position. |
RemoveColumns(Int32, Int32)
Removes the columns in the given column index.
Declaration
public void RemoveColumns(int removeAtColumnIndex, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | removeAtColumnIndex | The column index to remove the columns. |
System.Int32 | count | The count of columns to be removed. |
RemoveRows(Int32, Int32)
Removes the rows in the given row index.
Declaration
public void RemoveRows(int removeAtRowIndex, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | removeAtRowIndex | The index to remove the rows. |
System.Int32 | count | The count of the rows to be removed. |