Class ExportUtils
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Export
Assembly: TelerikExport.dll
Syntax
public class ExportUtils
Constructors
ExportUtils()
Declaration
public ExportUtils()
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
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
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
|
ConvertRotationDegreesToTextOrientation(Int32)
Convert the rotation degrees to text orientation.
Declaration
public static Orientation ConvertRotationDegreesToTextOrientation(int degrees)
Parameters
System.Int32
degrees
|
Returns
System.Windows.Forms.Orientation
|
ConvertTextOrientationToRotationDegrees(Orientation)
Convert the text orientation to rotation degrees.
Declaration
public static int ConvertTextOrientationToRotationDegrees(Orientation orientation)
Parameters
System.Windows.Forms.Orientation
orientation
|
Returns
System.Int32
|
GetHorizontalAligment(ContentAlignment)
Declaration
public static string GetHorizontalAligment(ContentAlignment alignment)
Parameters
System.Drawing.ContentAlignment
alignment
|
Returns
System.String
|
GetVerticalAlignment(ContentAlignment)
Declaration
public static string GetVerticalAlignment(ContentAlignment alignment)
Parameters
System.Drawing.ContentAlignment
alignment
|
Returns
System.String
|