Class Utils
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.Export
Assembly: TelerikData.dll
Syntax
public class Utils
Constructors
Utils()
Declaration
public Utils()
Methods
CheckSourceOfVisualSettings(RadElement)
Check if visual style settings comes from theme.
Declaration
public static bool CheckSourceOfVisualSettings(RadElement element)
Parameters
RadElement
element
Element to check |
Returns
System.Boolean
True if visual settings come from theme |
ColorMixer(Color[])
Declaration
public static Color ColorMixer(params Color[] colors)
Parameters
System.Drawing.Color[]
colors
|
Returns
System.Drawing.Color
|
ColorMixer(GradientStyles, Int32, Single, Single, Color[])
Declaration
public static Color ColorMixer(GradientStyles gradientSyle, int numberOfColors, float gradientPercent, float gradientPercent2, params Color[] colors)
Parameters
GradientStyles
gradientSyle
|
System.Int32
numberOfColors
|
System.Single
gradientPercent
|
System.Single
gradientPercent2
|
System.Drawing.Color[]
colors
|
Returns
System.Drawing.Color
|
ColorToHex(Color)
Converts a color to a hexidecimal value for use within HTML
Declaration
public static string ColorToHex(Color color)
Parameters
System.Drawing.Color
color
The color to convert |
Returns
System.String
A hex value, including '#' |
ConvertContentAligmentH(ContentAlignment)
Convert ContentAlignment to HorizontalAlignmentType
Declaration
public static HorizontalAlignmentType ConvertContentAligmentH(ContentAlignment alignment)
Parameters
System.Drawing.ContentAlignment
alignment
System.Drawing.ContentAlignment |
Returns
HorizontalAlignmentType
Telerik.WinControls.UI.Export.HorizontalAligmentType |
ConvertContentAligmentV(ContentAlignment)
Convert ContentAignment to VerticalAlignmentType
Declaration
public static VerticalAlignmentType ConvertContentAligmentV(ContentAlignment alignment)
Parameters
System.Drawing.ContentAlignment
alignment
System.Drawing.ContentAlignment |
Returns
VerticalAlignmentType
Telerik.WinControls.UI.Export.VerticalAlignmentType |
ConvertHorizontalAlign(HorizontalAlign)
Declaration
public static HorizontalAlignmentType ConvertHorizontalAlign(HorizontalAlign horizontalAlign)
Parameters
System.Windows.Forms.VisualStyles.HorizontalAlign
horizontalAlign
|
Returns
HorizontalAlignmentType
|
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 collor, ready for export |
GetCellDesiredSize(GridCellElement)
Declaration
public static SizeF GetCellDesiredSize(GridCellElement cell)
Parameters
GridCellElement
cell
|
Returns
System.Drawing.SizeF
|
GetHorizontalAligment(ContentAlignment)
Declaration
public static string GetHorizontalAligment(ContentAlignment alignment)
Parameters
System.Drawing.ContentAlignment
alignment
|
Returns
System.String
|
GetRowExportIndent(GridViewRowInfo)
Declaration
public static int GetRowExportIndent(GridViewRowInfo gridViewRowInfo)
Parameters
GridViewRowInfo
gridViewRowInfo
|
Returns
System.Int32
|
GetRowHeight(RadGridView, RowElementProvider, CellElementProvider, GridViewRowInfo)
Declaration
public static double GetRowHeight(RadGridView radGridView, RowElementProvider rowProvider, CellElementProvider cellProvider, GridViewRowInfo gridViewRowInfo)
Parameters
RadGridView
radGridView
|
RowElementProvider
rowProvider
|
CellElementProvider
cellProvider
|
GridViewRowInfo
gridViewRowInfo
|
Returns
System.Double
|
GetVerticalAlignment(ContentAlignment)
Declaration
public static string GetVerticalAlignment(ContentAlignment alignment)
Parameters
System.Drawing.ContentAlignment
alignment
|
Returns
System.String
|
ReleaseCellElement(CellElementProvider, GridRowElement, GridCellElement)
Declaration
public static void ReleaseCellElement(CellElementProvider cellProvider, GridRowElement rowElement, GridCellElement cell)
Parameters
CellElementProvider
cellProvider
|
GridRowElement
rowElement
|
GridCellElement
cell
|
ReleaseRowElement(RadGridView, RowElementProvider, GridRowElement)
Declaration
public static void ReleaseRowElement(RadGridView radGridView, RowElementProvider rowProvider, GridRowElement rowElement)
Parameters
RadGridView
radGridView
|
RowElementProvider
rowProvider
|
GridRowElement
rowElement
|