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 | |
System.Boolean | isHeader | Wheather the column is in header. |
Returns
Type | Description |
---|---|
System.Double | Returns the width of the text. |