Class TreeGridExpanderCell
Represents a cell that displays an expander icon in the SfTreeGrid control.
Inheritance
System.Object
Syncfusion.Maui.Core.Internals.DataGridCellBase
TreeGridExpanderCell
Implements
Microsoft.Maui.Graphics.IDrawable
Microsoft.Maui.IAbsoluteLayout
Microsoft.Maui.ILayout
Microsoft.Maui.IView
Microsoft.Maui.IElement
Microsoft.Maui.ITransform
Microsoft.Maui.IContainer
System.Collections.Generic.IList<Microsoft.Maui.IView>
System.Collections.Generic.ICollection<Microsoft.Maui.IView>
System.Collections.Generic.IEnumerable<Microsoft.Maui.IView>
System.Collections.IEnumerable
Microsoft.Maui.ISafeAreaView
Microsoft.Maui.IPadding
Microsoft.Maui.ICrossPlatformLayout
Microsoft.Maui.IVisualTreeElement
Inherited Members
Namespace: Syncfusion.Maui.TreeGrid
Assembly: Syncfusion.Maui.TreeGrid.dll
Syntax
public class TreeGridExpanderCell : TreeGridCell, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement, ISemanticsProvider, ITextElement, ITapGestureListener, IDoubleTapGestureListener, IGestureListener
Constructors
TreeGridExpanderCell()
Initializes a new instance of the TreeGridExpanderCell class.
Declaration
public TreeGridExpanderCell()
TreeGridExpanderCell(SfTreeGrid)
Initializes a new instance of the TreeGridExpanderCell class with the specified SfTreeGrid.
Declaration
public TreeGridExpanderCell(SfTreeGrid treeGrid)
Parameters
| Type | Name | Description |
|---|---|---|
| SfTreeGrid | treeGrid |
Methods
ArrangeContent(Rect)
Arranges the content of the cell, including the expander icon and the main content, based on the provided bounds.
Declaration
protected override Size ArrangeContent(Rect bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Maui.Graphics.Rect | bounds |
Returns
| Type |
|---|
| Microsoft.Maui.Graphics.Size |
Overrides
MeasureContent(Double, Double)
Measures the size of the content within the expander cell, taking into account the expander icon and indentation based on the row's level in the tree structure.
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
Implements
Microsoft.Maui.Graphics.IDrawable
Microsoft.Maui.IAbsoluteLayout
Microsoft.Maui.ILayout
Microsoft.Maui.IView
Microsoft.Maui.IElement
Microsoft.Maui.ITransform
Microsoft.Maui.IContainer
System.Collections.Generic.IList<>
System.Collections.Generic.ICollection<>
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable
Microsoft.Maui.ISafeAreaView
Microsoft.Maui.IPadding
Microsoft.Maui.ICrossPlatformLayout
Microsoft.Maui.IVisualTreeElement