New to Telerik UI for WinForms? Start a free 30-day trial

Represents utilities for the grid export.

Definition

Namespace:Telerik.WinControls.Export

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridExportUtils

Inheritance: objectGridExportUtils

Constructors

C#
public GridExportUtils()

Methods

Converts padding in Dip to millimeters.

C#
public static Padding ConvertDipToMmPadding(Padding value)
Parameters:valuePadding

Value.

Returns:

Padding

Converts the size of the dip to mm.

C#
public static SizeF ConvertDipToMmSize(SizeF value)
Parameters:valueSizeF

The value.

Returns:

SizeF

Converts the image to byte array.

C#
public static byte[] ConvertImageToByteArray(Image image)
Parameters:imageImage

The image.

Returns:

byte[]

Converts padding in millimeters to Dip.

C#
public static Padding ConvertMmToDipPadding(Padding value)
Parameters:valuePadding

Value.

Returns:

Padding

Converts the size of the mm to dip.

C#
public static SizeF ConvertMmToDipSize(SizeF value)
Parameters:valueSizeF

The value.

Returns:

SizeF

Converts ContentAlignment to a value which is used in RightToLeft mode.

C#
public static ContentAlignment ConvertToRightToLeftAlignment(ContentAlignment alignment)
Parameters:alignmentContentAlignment

Initial value.

Returns:

ContentAlignment

Converted value.

Converts Dip to millimeters.

C#
public static double DipToMm(double value)
Parameters:valuedouble

Value in Dip.

Returns:

double

Value converted to millimeters.

Search for real visible fill and mix its colors

C#
public static Color GetBackColor(LightVisualElement element)
Parameters:elementLightVisualElementReturns:

Color

Mixed color, ready for export

Converts millimeters to Dip.

C#
public static double MmToDip(double value)
Parameters:valuedouble

Value in millimeters.

Returns:

double

Value converted to Dip