menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface ICalculateWidth - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface ICalculateWidth

    Defines methods that can be used to calculate the width of the view.

    Namespace: Syncfusion.SfDataGrid.XForms
    Assembly: Syncfusion.SfDataGrid.XForms.dll
    Syntax
    public interface ICalculateWidth

    Methods

    CalculateTemplateWidth(View, SfDataGrid)

    Gets the width of the view.

    Declaration
    double CalculateTemplateWidth(View view, SfDataGrid grid)
    Parameters
    Type Name Description
    Xamarin.Forms.View view

    The template.

    SfDataGrid grid

    SfDataGrid instance.

    Returns
    Type Description
    System.Double

    Returns the width of the template.

    CalculateTextWidth(String, GridColumn, Boolean)

    Gets the width of the text.

    Declaration
    double CalculateTextWidth(string text, GridColumn column, bool isHeader)
    Parameters
    Type Name Description
    System.String text

    Text in the column.

    GridColumn column

    GridColumn.

    System.Boolean isHeader

    Wheather the column is in header.

    Returns
    Type Description
    System.Double

    Returns the width of the text.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved