alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class TreeGridColumnSizer

    Inheritance
    object
    TreeGridColumnSizer
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Maui.TreeGrid
    Assembly: Syncfusion.Maui.TreeGrid.dll
    Syntax
    public class TreeGridColumnSizer : IDisposable

    Constructors

    TreeGridColumnSizer()

    Declaration
    public TreeGridColumnSizer()

    Methods

    Dispose()

    Declaration
    public void Dispose()

    GetActualWidth(TreeGridColumn, double)

    Sets the width of the remaining columns based on their AutoWidth property.

    Declaration
    public double GetActualWidth(TreeGridColumn column, double calculatedWidth)
    Parameters
    Type Name Description
    TreeGridColumn column
    double calculatedWidth
    Returns
    Type
    double

    GetColumnAutoSizeWidth(TreeGridColumn)

    Declaration
    protected virtual double GetColumnAutoSizeWidth(TreeGridColumn column)
    Parameters
    Type Name Description
    TreeGridColumn column
    Returns
    Type
    double

    GetColumnToFill()

    Gets the column that will fill the remaining viewport width in the SfTreeGrid.

    Declaration
    protected virtual TreeGridColumn? GetColumnToFill()
    Returns
    Type Description
    TreeGridColumn

    The column to fill, or null if no such column exists.

    OnColumnPropertyChanged(TreeGridColumn, string)

    Represents the method that will handle the property changes of TreeGridColumn.

    Declaration
    protected virtual void OnColumnPropertyChanged(TreeGridColumn column, string propertyName)
    Parameters
    Type Name Description
    TreeGridColumn column

    A TreeGridColumn object.

    string propertyName

    The property name.

    OnComputeCellHeight(TreeGridColumn, object?)

    Calculates the height of the data row's cells. You can override this method to perform the custom calculation for height.

    Declaration
    protected virtual double OnComputeCellHeight(TreeGridColumn column, object? cellValue)
    Parameters
    Type Name Description
    TreeGridColumn column

    The Current Column

    object cellValue

    The value of the current grid cell.

    Returns
    Type
    double

    OnComputeCellWidth(TreeGridColumn, string)

    Measures and returns the text width based on the cell value.

    Declaration
    protected virtual double OnComputeCellWidth(TreeGridColumn column, string text)
    Parameters
    Type Name Description
    TreeGridColumn column

    current column.

    string text

    current column text.

    Returns
    Type Description
    double

    Returns the text width based on the cell value.

    OnComputeHeaderCellHeight(string, TreeGridColumn)

    Calculates the height of the header cells. You can override this method to perform the custom calculation for height.

    Declaration
    protected virtual double OnComputeHeaderCellHeight(string cellValue, TreeGridColumn column)
    Parameters
    Type Name Description
    string cellValue

    The value of the HeaderCell

    TreeGridColumn column

    The current column.

    Returns
    Type
    double

    OnComputeHeaderCellWidth(string?, TreeGridColumn?)

    Calculates the width of the header cells. You can override this method to perform the custom calculation for width.

    Declaration
    protected virtual double OnComputeHeaderCellWidth(string? cellValue, TreeGridColumn? column = null)
    Parameters
    Type Name Description
    string cellValue

    Value of the header cell.

    TreeGridColumn column

    The current column.

    Returns
    Type Description
    double

    Returns the width required to auto-fit the given column based on its header content.

    Refresh(bool)

    Refreshes the GridColumns in the view.

    Declaration
    public void Refresh(bool needsLayout = true)
    Parameters
    Type Name Description
    bool needsLayout

    A boolean value specifying whether layout is needed.

    ResetAutoWidth(TreeGridColumn)

    Resets the AutoWidth for the specified column.

    Declaration
    public void ResetAutoWidth(TreeGridColumn column)
    Parameters
    Type Name Description
    TreeGridColumn column

    The column to reset.

    SetAutoWidth(TreeGridColumn, double)

    Sets the measured cell width to the given column.

    Declaration
    public void SetAutoWidth(TreeGridColumn column, double width)
    Parameters
    Type Name Description
    TreeGridColumn column
    double width

    SetFillWidthForColumns(double, IEnumerable<TreeGridColumn>)

    Calculates the width of the grid cell.

    Declaration
    protected virtual void SetFillWidthForColumns(double columnsWidth, IEnumerable<TreeGridColumn> columns)
    Parameters
    Type Name Description
    double columnsWidth
    IEnumerable<TreeGridColumn> columns

    Implements

    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved