Class VisualContainer
ToDo
Implements
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class VisualContainer : SfView, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement, ISemanticsProvider, IKeyboardListener, IDisposable
Constructors
VisualContainer()
Initializes a new instance of the VisualContainer class.
Declaration
public VisualContainer()
Fields
HorizontalOffsetProperty
Identifies the HorizontalOffset Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty HorizontalOffsetProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
This Microsoft.Maui.Controls.BindableProperty is read-only.
VerticalOffsetProperty
Identifies the VerticalOffset Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty VerticalOffsetProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
This Microsoft.Maui.Controls.BindableProperty is read-only.
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. |
ExtendedHeight
Gets the extent height of a SfDataGrid control.
Declaration
public double ExtendedHeight { get; }
Property Value
Type | Description |
---|---|
System.Double | The extent height of a SfDataGrid control. |
ExtendedWidth
Gets the extent width of a SfDataGrid control.
Declaration
public double ExtendedWidth { get; }
Property Value
Type | Description |
---|---|
System.Double | The extent width of a SfDataGrid control. |
FrozenColumns
Gets or sets the frozen columns count to freeze the columns at the left.
Declaration
public int FrozenColumns { get; set; }
Property Value
Type |
---|
System.Int32 |
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. |
HorizontalScrollbar
Gets a reference to the class that implements IScrollBar which contains the horizontal scroll bar information.
Declaration
public IScrollBar HorizontalScrollbar { get; }
Property Value
Type | Description |
---|---|
IScrollBar | A reference to the class that implements IScrollBar which contains the horizontal scroll bar information. |
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 a reference to the class that implements RowGenerator.
Declaration
public RowGenerator RowGenerator { get; }
Property Value
Type | Description |
---|---|
RowGenerator | A reference to the class that implements RowGenerator. |
RowHeights
Gets the rows height from the LineSizeCollection.
Declaration
public IPaddedEditableLineSizeHost RowHeights { get; }
Property Value
Type | Description |
---|---|
IPaddedEditableLineSizeHost | The rows height from the LineSizeCollection. |
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. |
ScrollOwner
ToDo
Declaration
public DataGridScrollView ScrollOwner { get; }
Property Value
Type |
---|
DataGridScrollView |
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. |
VerticalScrollbar
Gets a reference to the class that implements IScrollBar which contains the vertical scroll bar information.
Declaration
public IScrollBar VerticalScrollbar { get; }
Property Value
Type | Description |
---|---|
IScrollBar | A reference to the class that implements IScrollBar which contains the vertical scroll bar information. |
Methods
ArrangeContent(Rect)
ToDo
Declaration
protected override Size ArrangeContent(Rect bounds)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Maui.Graphics.Rect | bounds |
Returns
Type |
---|
Microsoft.Maui.Graphics.Size |
Overrides
Dispose()
Releases the resources used by the component.
Declaration
public void Dispose()
Dispose(Boolean)
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
protected virtual 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. |
InvalidateMeasure()
Method that is called to invalidate the layout of this Microsoft.Maui.Controls.VisualElement. Raises the Microsoft.Maui.Controls.VisualElement.MeasureInvalidated event.
Declaration
protected override void InvalidateMeasure()
MeasureContent(Double, Double)
ToDo
Declaration
protected override Size MeasureContent(double widthConstraint, double heightConstraint)
Parameters
Type | Name | Description |
---|---|---|
System.Double | widthConstraint | |
System.Double | heightConstraint |
Returns
Type |
---|
Microsoft.Maui.Graphics.Size |
Overrides
OnCreateColumnWidths()
Creates a new instance of LineSizeCollection for getting the column widths.
Declaration
protected IPaddedEditableLineSizeHost OnCreateColumnWidths()
Returns
Type | Description |
---|---|
IPaddedEditableLineSizeHost | A new instance of the LineSizeCollection. |
OnCreateRowHeights()
Creates a new instance of LineSizeCollection for getting the row heights.
Declaration
protected IPaddedEditableLineSizeHost OnCreateRowHeights()
Returns
Type | Description |
---|---|
IPaddedEditableLineSizeHost | A new instance of the LineSizeCollection. |
OnHandlerChanged()
Indicates when handler is changed
Declaration
protected override void OnHandlerChanged()
Overrides
OnSizeAllocated(Double, Double)
This method is called when the size of the element is set during a layout cycle. This method is called directly before the Microsoft.Maui.Controls.VisualElement.SizeChanged event is emitted.
Declaration
protected override void OnSizeAllocated(double width, double height)
Parameters
Type | Name | Description |
---|---|---|
System.Double | width | |
System.Double | height |