New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Telerik.Web.UI.GridExcelBuilder.Utils

Utilily class. Provides helpful methods for ExcelML units conversion.

Inheritance Hierarchy

  • System.Object
  • Telerik.Web.UI.GridExcelBuilder.Utils

Methods

ConvertColor

Converts Color object to HTML color string

Parameters

color System.Drawing.Color

Color object

Returns

System.String HTML-coded color string

ConvertHorizontalAlign

Converts ASP.NET HorizontalAlign to ExcelML HorizontalAlignmentType

Parameters

horizontalAlign System.Web.UI.WebControls.HorizontalAlign

HorizontalAlign value

Returns

Telerik.Web.UI.GridExcelBuilder.HorizontalAlignmentType HorizontalAlignmentType value

ConvertUnitsToPoints

Converts Unit values to point (UnitType.Point)

Parameters

unit System.Web.UI.WebControls.Unit

Unit value

Returns

System.Double Point value (double)

In this article