Class VisualContainer
Represents a visual container that manages the layout and scrolling behavior of rows and columns in a SfTreeGrid control.
Implements
Inherited Members
Namespace: Syncfusion.Maui.TreeGrid
Assembly: Syncfusion.Maui.TreeGrid.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
Constructors
VisualContainer(SfTreeGrid)
Initializes a new instance of the VisualContainer class.
Declaration
public VisualContainer(SfTreeGrid treeGrid)
Parameters
| Type | Name | Description |
|---|---|---|
| SfTreeGrid | treeGrid |
Properties
ColumnCount
Gets or sets the number of columns in the tree grid.
Declaration
public int ColumnCount { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
ColumnWidths
Gets the column widths provider that manages the sizes of columns in the tree grid.
Declaration
public IPaddedEditableLineSizeHost ColumnWidths { get; }
Property Value
| Type |
|---|
| IPaddedEditableLineSizeHost |
ExtendedHeight
Gets the total height of the content in the tree grid.
Declaration
public double ExtendedHeight { get; }
Property Value
| Type |
|---|
| System.Double |
ExtendedWidth
Gets the total width of the content in the tree grid.
Declaration
public double ExtendedWidth { get; }
Property Value
| Type |
|---|
| System.Double |
HorizontalOffset
Gets or sets the horizontal offset of a SfTreeGrid control.
Declaration
public double HorizontalOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The horizontal offset of a SfTreeGrid control. |
HorizontalScrollbar
Gets the horizontal scroll bar information for the control.
Declaration
public ScrollInfo HorizontalScrollbar { get; }
Property Value
| Type |
|---|
| ScrollInfo |
RowCount
Gets or sets the number of rows in the tree grid.
Declaration
public int RowCount { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
RowHeights
Gets the row heights provider that manages the sizes of rows in the tree grid.
Declaration
public IPaddedEditableLineSizeHost RowHeights { get; }
Property Value
| Type |
|---|
| IPaddedEditableLineSizeHost |
ScrollColumns
Gets the scroll axis for columns, which manages the scrolling behavior of columns in the tree grid.
Declaration
public ScrollAxisBase ScrollColumns { get; }
Property Value
| Type |
|---|
| ScrollAxisBase |
ScrollOwner
Gets or sets the scroll viewer.
Declaration
public TreeGridScrollView ScrollOwner { get; }
Property Value
| Type |
|---|
| TreeGridScrollView |
ScrollRows
Gets the scroll axis for rows, which manages the scrolling behavior of rows in the tree grid.
Declaration
public ScrollAxisBase ScrollRows { get; }
Property Value
| Type |
|---|
| ScrollAxisBase |
VerticalOffset
Gets or sets the vertical offset of a SfTreeGrid control.
Declaration
public double VerticalOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The vertical offset of a SfTreeGrid control. |
VerticalScrollbar
Gets the vertical scroll bar information for the control.
Declaration
public ScrollInfo VerticalScrollbar { get; }
Property Value
| Type |
|---|
| ScrollInfo |
Methods
ArrangeContent(Rect)
Arranges the content of the element within the specified bounds.
Declaration
protected override Size ArrangeContent(Rect bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Maui.Graphics.Rect | bounds | A rectangle that defines the final area within the parent that this element should use to arrange itself and its children. |
Returns
| Type | Description |
|---|---|
| Microsoft.Maui.Graphics.Size | A Size structure that represents the actual size used after arranging the content. |
Overrides
MeasureContent(Double, Double)
Measures the size required for the content, given the specified width and height constraints.
Declaration
protected override Size MeasureContent(double widthConstraint, double heightConstraint)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | widthConstraint | The maximum width, in device-independent units (DIPs), that the content can occupy. |
| System.Double | heightConstraint | The maximum height, in device-independent units (DIPs), that the content can occupy. |
Returns
| Type | Description |
|---|---|
| Microsoft.Maui.Graphics.Size | A Size structure representing the desired size of the content that fits within the specified constraints. |
Overrides
OnCreateColumnWidths()
Creates a new instance of a class that implements the IPaddedEditableLineSizeHost interface to manage column widths.
Declaration
protected virtual IPaddedEditableLineSizeHost OnCreateColumnWidths()
Returns
| Type |
|---|
| IPaddedEditableLineSizeHost |
OnCreateRowHeights()
Creates a new instance of a class that implements the IPaddedEditableLineSizeHost interface to manage row heights.
Declaration
protected virtual IPaddedEditableLineSizeHost OnCreateRowHeights()
Returns
| Type |
|---|
| IPaddedEditableLineSizeHost |