Class TelerikHelper
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class TelerikHelper
Constructors
TelerikHelper()
Declaration
public TelerikHelper()
Fields
AnyBottomAlign
Declaration
[Obsolete("Use LayoutUtils members instead. This member will be removed in 2026 Q2.")]
public static readonly ContentAlignment AnyBottomAlign
Field Value
System.Drawing.ContentAlignment
|
AnyCenterAlign
Declaration
[Obsolete("Use LayoutUtils members instead. This member will be removed in 2026 Q2.")]
public static readonly ContentAlignment AnyCenterAlign
Field Value
System.Drawing.ContentAlignment
|
AnyLeftAlign
Declaration
[Obsolete("Use LayoutUtils members instead. This member will be removed in 2026 Q2.")]
public static readonly ContentAlignment AnyLeftAlign
Field Value
System.Drawing.ContentAlignment
|
AnyMiddleAlign
Declaration
[Obsolete("Use LayoutUtils members instead. This member will be removed in 2026 Q2.")]
public static readonly ContentAlignment AnyMiddleAlign
Field Value
System.Drawing.ContentAlignment
|
AnyRightAlign
Declaration
[Obsolete("Use LayoutUtils members instead. This member will be removed in 2026 Q2.")]
public static readonly ContentAlignment AnyRightAlign
Field Value
System.Drawing.ContentAlignment
|
AnyTopAlign
Declaration
[Obsolete("Use LayoutUtils members instead. This member will be removed in 2026 Q2.")]
public static readonly ContentAlignment AnyTopAlign
Field Value
System.Drawing.ContentAlignment
|
Properties
IsNet47OrHigher
Declaration
public static bool IsNet47OrHigher { get; }
Property Value
System.Boolean
|
IsWindows10AnniversaryUpdateOrHigher
Declaration
public static bool IsWindows10AnniversaryUpdateOrHigher { get; }
Property Value
System.Boolean
|
IsWindows10CreatorsUpdateOrHigher
Declaration
public static bool IsWindows10CreatorsUpdateOrHigher { get; }
Property Value
System.Boolean
|
IsWindows10OrHigher
Declaration
public static bool IsWindows10OrHigher { get; }
Property Value
System.Boolean
|
IsWindows11
Declaration
public static bool IsWindows11 { get; }
Property Value
System.Boolean
|
IsWindows7
Declaration
public static bool IsWindows7 { get; }
Property Value
System.Boolean
|
IsWindows7OrHigher
Declaration
public static bool IsWindows7OrHigher { get; }
Property Value
System.Boolean
|
IsWindows7OrLower
Declaration
public static bool IsWindows7OrLower { get; }
Property Value
System.Boolean
|
IsWindows8OrHigher
Declaration
public static bool IsWindows8OrHigher { get; }
Property Value
System.Boolean
|
IsWindows8OrLower
Declaration
public static bool IsWindows8OrLower { get; }
Property Value
System.Boolean
|
Methods
AnimateWindow(IntPtr, Int32, Int32)
Declaration
public static void AnimateWindow(IntPtr animatedControlHandle, int animationDuration, int dwFlags)
Parameters
System.IntPtr
animatedControlHandle
|
System.Int32
animationDuration
|
System.Int32
dwFlags
|
CanProcessMnemonic(Control)
Declaration
public static bool CanProcessMnemonic(Control control)
Parameters
System.Windows.Forms.Control
control
|
Returns
System.Boolean
|
CanProcessMnemonicNoRecursive(Control)
Declaration
public static bool CanProcessMnemonicNoRecursive(Control control)
Parameters
System.Windows.Forms.Control
control
|
Returns
System.Boolean
|
ContainsMnemonic(String)
Declaration
public static bool ContainsMnemonic(string text)
Parameters
System.String
text
|
Returns
System.Boolean
|
ControlAtPoint(Point)
Declaration
public static Control ControlAtPoint(Point point)
Parameters
System.Drawing.Point
point
|
Returns
System.Windows.Forms.Control
|
ControlIsReallyVisible(Control)
Declaration
public static bool ControlIsReallyVisible(Control control)
Parameters
System.Windows.Forms.Control
control
|
Returns
System.Boolean
|
CreateOutlineForm()
Declaration
public static Form CreateOutlineForm()
Returns
System.Windows.Forms.Form
|
CreateOutlineForm(Bitmap, Color)
Declaration
public static Form CreateOutlineForm(Bitmap image, Color color)
Parameters
System.Drawing.Bitmap
image
|
System.Drawing.Color
color
|
Returns
System.Windows.Forms.Form
|
CreateOutlineForm1()
CreateOutlineForm1(Bitmap, Color)
Declaration
public static RadShimControl CreateOutlineForm1(Bitmap image, Color color)
Parameters
System.Drawing.Bitmap
image
|
System.Drawing.Color
color
|
Returns
RadShimControl
|
FindRadControlParent(Control)
Searches the control hierarchy tree and returns the first RadControl that parents the control provided. Otherwise returns null.
Declaration
public static RadControl FindRadControlParent(Control control)
Parameters
System.Windows.Forms.Control
control
|
Returns
RadControl
|
GetBoundingRect(Rectangle, RadMatrix)
Get bounding rectangle around rotated one.
Declaration
public static Rectangle GetBoundingRect(Rectangle rect, RadMatrix matrix)
Parameters
System.Drawing.Rectangle
rect
Rectangle that is to be rotated |
RadMatrix
matrix
|
Returns
System.Drawing.Rectangle
Returns the bounding rectangle around the rectangle that is rotated according to the given matrix |
GetBoundingRect(RectangleF, RadMatrix)
Declaration
public static RectangleF GetBoundingRect(RectangleF rect, RadMatrix matrix)
Parameters
System.Drawing.RectangleF
rect
|
RadMatrix
matrix
|
Returns
System.Drawing.RectangleF
|
GetColorAtPoint(Point)
Gets the color of the pixel at the specified location on the screen.
Declaration
public static Color GetColorAtPoint(Point location)
Parameters
System.Drawing.Point
location
The location in screen coordinates to get the color for. |
Returns
System.Drawing.Color
The color of the pixed at the specified location. |
GetImageFormat(Image)
Declaration
public static ImageFormat GetImageFormat(Image img)
Parameters
System.Drawing.Image
img
|
Returns
System.Drawing.Imaging.ImageFormat
|
GetStreamFromResource(Assembly, String)
Declaration
public static Stream GetStreamFromResource(Assembly assembly, string resourceUri)
Parameters
System.Reflection.Assembly
assembly
|
System.String
resourceUri
|
Returns
System.IO.Stream
|
GetThemeName(String)
Gets the actual theme name in use. The theme is set with the following priority:
- ThemeResolutionService.ApplicationThemeName
- RadControl.ThemeName - it is passed as the method parameter
- ThemeResolutionService.ControlDefaultThemeName
Declaration
public static string GetThemeName(string controlThemeName)
Parameters
System.String
controlThemeName
|
Returns
System.String
|
GetThemeName(RadElement)
Gets the actual theme used by the passed RadElement.
Declaration
public static string GetThemeName(RadElement element)
Parameters
RadElement
element
|
Returns
System.String
|
ImageFromString(String)
Declaration
public static Image ImageFromString(string encodedImage)
Parameters
System.String
encodedImage
|
Returns
System.Drawing.Image
|
ImageToString(Image)
Declaration
public static string ImageToString(Image image)
Parameters
System.Drawing.Image
image
|
Returns
System.String
|
IsBottomAligned(ContentAlignment)
Declaration
[Obsolete("Use LayoutUtils.IsBottomAlignment(align) method instead. This method will be removed in 2026 Q2.")]
public static bool IsBottomAligned(ContentAlignment align)
Parameters
System.Drawing.ContentAlignment
align
|
Returns
System.Boolean
|
IsCompatibleDataSource()
Declaration
public static bool IsCompatibleDataSource()
Returns
System.Boolean
|
IsDarkTheme(String)
Declaration
public static bool IsDarkTheme(string themeName)
Parameters
System.String
themeName
|
Returns
System.Boolean
|
IsInteger(Type)
Declaration
public static bool IsInteger(Type type)
Parameters
System.Type
type
|
Returns
System.Boolean
|
IsMaterialTheme(String)
Declaration
public static bool IsMaterialTheme(string themeName)
Parameters
System.String
themeName
|
Returns
System.Boolean
|
IsMetroTouchTheme(String)
Declaration
public static bool IsMetroTouchTheme(string themeName)
Parameters
System.String
themeName
|
Returns
System.Boolean
|
IsNumericType(Type)
Declaration
public static bool IsNumericType(Type type)
Parameters
System.Type
type
|
Returns
System.Boolean
|
IsPseudoMnemonic(Char, String)
Declaration
protected static bool IsPseudoMnemonic(char charCode, string text)
Parameters
System.Char
charCode
|
System.String
text
|
Returns
System.Boolean
|
IsRightAligned(ContentAlignment)
Declaration
[Obsolete("Use LayoutUtils.IsRightAlignment(align) method instead. This member will be removed in 2026 Q2.")]
public static bool IsRightAligned(ContentAlignment align)
Parameters
System.Drawing.ContentAlignment
align
|
Returns
System.Boolean
|
KeyCodeToUnicode(Keys)
Converts a key to string taking into account the currently selected keyboard layout.
Declaration
public static string KeyCodeToUnicode(Keys key)
Parameters
System.Windows.Forms.Keys
key
The key to convert. |
Returns
System.String
The string mapped to the provided key. |
MirrorRotateFlipType(RotateFlipType)
Declaration
public static RotateFlipType MirrorRotateFlipType(RotateFlipType rotateFlip)
Parameters
System.Drawing.RotateFlipType
rotateFlip
|
Returns
System.Drawing.RotateFlipType
|
PerformCenteredRotation(ref RadMatrix, RectangleF, Single)
Declaration
public static RectangleF PerformCenteredRotation(ref RadMatrix matrix, RectangleF bounds, float angle)
Parameters
RadMatrix
matrix
|
System.Drawing.RectangleF
bounds
|
System.Single
angle
|
Returns
System.Drawing.RectangleF
|
PerformTopLeftRotation(ref RadMatrix, RectangleF, Single)
Declaration
public static RectangleF PerformTopLeftRotation(ref RadMatrix matrix, RectangleF bounds, float angle)
Parameters
RadMatrix
matrix
|
System.Drawing.RectangleF
bounds
|
System.Single
angle
|
Returns
System.Drawing.RectangleF
|
ProcessStart(String)
Declaration
public static void ProcessStart(string fileName)
Parameters
System.String
fileName
|
ProcessStart(String, Boolean)
Declaration
public static void ProcessStart(string fileName, bool useShellExecute)
Parameters
System.String
fileName
|
System.Boolean
useShellExecute
|
ResizeImage(Image, Size)
Resizes an image to a new size.
Declaration
public static Image ResizeImage(Image source, Size size)
Parameters
System.Drawing.Image
source
The source image to resize. |
System.Drawing.Size
size
The new size which will be used to resize the image. |
Returns
System.Drawing.Image
A new resized image. |
SetDropShadow(IntPtr)
Declaration
public static void SetDropShadow(IntPtr hWnd)
Parameters
System.IntPtr
hWnd
|
StringFormatForAlignment(ContentAlignment)
Declaration
public static StringFormat StringFormatForAlignment(ContentAlignment align)
Parameters
System.Drawing.ContentAlignment
align
|
Returns
System.Drawing.StringFormat
|
StringIsNullOrWhiteSpace(String)
Declaration
public static bool StringIsNullOrWhiteSpace(string str)
Parameters
System.String
str
|
Returns
System.Boolean
|
SvgImageFromString(String)
Creates a RadSvgImage object from XML string.
Declaration
public static RadSvgImage SvgImageFromString(string svgXml)
Parameters
System.String
svgXml
The XML representing the SVG image. |
Returns
RadSvgImage
The created RadSvgImage object. |
SvgImageToString(RadSvgImage)
Converts a RadSvgImage object to a XML string.
Declaration
public static string SvgImageToString(RadSvgImage svgImage)
Parameters
RadSvgImage
svgImage
The RadSvgImage object. |
Returns
System.String
|
TextWithoutMnemonics(String)
Declaration
public static string TextWithoutMnemonics(string text)
Parameters
System.String
text
|
Returns
System.String
|
TransformPoints(Point[], Single[])
Declaration
public static void TransformPoints(Point[] points, float[] elements)
Parameters
System.Drawing.Point[]
points
|
System.Single[]
elements
|
TransformPoints(PointF[], Single[])
Declaration
public static void TransformPoints(PointF[] points, float[] elements)
Parameters
System.Drawing.PointF[]
points
|
System.Single[]
elements
|