Class
ExportUtils

Definition

Namespace:Telerik.WinControls.Export

Assembly:TelerikExport.dll

Syntax:

cs-api-definition
public class ExportUtils

Inheritance: objectExportUtils

Constructors

ExportUtils()

Declaration

cs-api-definition
public ExportUtils()

Methods

CheckSourceOfVisualSettings(RadElement)

Check if visual style settings comes from theme.

Declaration

cs-api-definition
public static bool CheckSourceOfVisualSettings(RadElement element)

Parameters

element

RadElement

Element to check

Returns

bool

True if visual settings come from theme

ColorToHex(Color)

Converts a color to a hexadecimal value for use within HTML

Declaration

cs-api-definition
public static string ColorToHex(Color color)

Parameters

color

Color

The color to convert

Returns

string

A hex value, including '#'

ConvertContentAligmentH(ContentAlignment)

Convert ContentAlignment to HorizontalAlignmentType

Declaration

cs-api-definition
public static HorizontalAlignmentType ConvertContentAligmentH(ContentAlignment alignment)

Parameters

alignment

ContentAlignment

ContentAlignment

Returns

HorizontalAlignmentType

Telerik.WinControls.UI.Export.HorizontalAligmentType

ConvertContentAligmentV(ContentAlignment)

Convert ContentAignment to VerticalAlignmentType

Declaration

cs-api-definition
public static VerticalAlignmentType ConvertContentAligmentV(ContentAlignment alignment)

Parameters

alignment

ContentAlignment

ContentAlignment

Returns

VerticalAlignmentType

Telerik.WinControls.UI.Export.VerticalAlignmentType

ConvertHorizontalAlign(HorizontalAlign)

Declaration

cs-api-definition
public static HorizontalAlignmentType ConvertHorizontalAlign(HorizontalAlign horizontalAlign)

Parameters

horizontalAlign

HorizontalAlign

Returns

HorizontalAlignmentType

ConvertRotationDegreesToTextOrientation(int)

Convert the rotation degrees to text orientation.

Declaration

cs-api-definition
public static Orientation ConvertRotationDegreesToTextOrientation(int degrees)

Parameters

degrees

int

Returns

Orientation

ConvertTextOrientationToRotationDegrees(Orientation)

Convert the text orientation to rotation degrees.

Declaration

cs-api-definition
public static int ConvertTextOrientationToRotationDegrees(Orientation orientation)

Parameters

orientation

Orientation

Returns

int

GetHorizontalAligment(ContentAlignment)

Declaration

cs-api-definition
public static string GetHorizontalAligment(ContentAlignment alignment)

Parameters

alignment

ContentAlignment

Returns

string

GetVerticalAlignment(ContentAlignment)

Declaration

cs-api-definition
public static string GetVerticalAlignment(ContentAlignment alignment)

Parameters

alignment

ContentAlignment

Returns

string