Class GridExportUtils
Represents utilities for the grid export.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Export
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridExportUtils
Constructors
GridExportUtils()
Declaration
public GridExportUtils()
Methods
ColorMixer(Color[])
Mixes the colors.
Declaration
public static Color ColorMixer(params Color[] colors)
Parameters
System.Drawing.Color[]
colors
The colors. |
Returns
System.Drawing.Color
|
ColorMixer(GradientStyles, Int32, Single, Single, Color[])
Mixes the colors.
Declaration
public static Color ColorMixer(GradientStyles gradientSyle, int numberOfColors, float gradientPercent, float gradientPercent2, params Color[] colors)
Parameters
GradientStyles
gradientSyle
The gradient syle. |
System.Int32
numberOfColors
The number of colors. |
System.Single
gradientPercent
The gradient percent. |
System.Single
gradientPercent2
The gradient percent2. |
System.Drawing.Color[]
colors
The colors. |
Returns
System.Drawing.Color
|
ConvertDipToMmPadding(Padding)
Converts padding in Dip to millimeters.
Declaration
public static Padding ConvertDipToMmPadding(Padding value)
Parameters
System.Windows.Forms.Padding
value
Value. |
Returns
System.Windows.Forms.Padding
|
ConvertDipToMmSize(SizeF)
Converts the size of the dip to mm.
Declaration
public static SizeF ConvertDipToMmSize(SizeF value)
Parameters
System.Drawing.SizeF
value
The value. |
Returns
System.Drawing.SizeF
|
ConvertImageToByteArray(Image)
Converts the image to byte array.
Declaration
public static byte[] ConvertImageToByteArray(Image image)
Parameters
System.Drawing.Image
image
The image. |
Returns
System.Byte[]
|
ConvertMmToDipPadding(Padding)
Converts padding in millimeters to Dip.
Declaration
public static Padding ConvertMmToDipPadding(Padding value)
Parameters
System.Windows.Forms.Padding
value
Value. |
Returns
System.Windows.Forms.Padding
|
ConvertMmToDipSize(SizeF)
Converts the size of the mm to dip.
Declaration
public static SizeF ConvertMmToDipSize(SizeF value)
Parameters
System.Drawing.SizeF
value
The value. |
Returns
System.Drawing.SizeF
|
ConvertToRightToLeftAlignment(ContentAlignment)
Converts ContentAlignment to a value which is used in RightToLeft mode.
Declaration
public static ContentAlignment ConvertToRightToLeftAlignment(ContentAlignment alignment)
Parameters
System.Drawing.ContentAlignment
alignment
Initial value. |
Returns
System.Drawing.ContentAlignment
Converted value. |
DipToMm(Double)
Converts Dip to millimeters.
Declaration
public static double DipToMm(double value)
Parameters
System.Double
value
Value in Dip. |
Returns
System.Double
Value converted to millimeters. |
GetBackColor(LightVisualElement)
Search for real visible fill and mix its colors
Declaration
public static Color GetBackColor(LightVisualElement element)
Parameters
LightVisualElement
element
|
Returns
System.Drawing.Color
Mixed color, ready for export |
MmToDip(Double)
Converts millimeters to Dip.
Declaration
public static double MmToDip(double value)
Parameters
System.Double
value
Value in millimeters. |
Returns
System.Double
Value converted to Dip |