Class ExtensionMethods
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Documents.Layout
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public static class ExtensionMethods
Methods
AddWidth(Size, Size)
Declaration
public static Size AddWidth(this Size size1, Size size2)
Parameters
Size
size1
|
Size
size2
|
Returns
Size
|
AreClose(RectangleF, RectangleF)
Declaration
public static bool AreClose(this RectangleF rect1, RectangleF rect2)
Parameters
RectangleF
rect1
|
RectangleF
rect2
|
Returns
System.Boolean
|
BlendWith(Color, Color)
Declaration
public static Color BlendWith(this Color color, Color backColor)
Parameters
Color
color
|
Color
backColor
|
Returns
Color
|
Darker(Color)
Darker(Color, Byte)
Declaration
public static Color Darker(this Color color, byte factor)
Parameters
Color
color
|
System.Byte
factor
|
Returns
Color
|
GetAssociatedLayoutBox(UIElement)
Declaration
public static LayoutBox GetAssociatedLayoutBox(this UIElement element)
Parameters
UIElement
element
|
Returns
LayoutBox
|
GetCurrentSectionBox(LayoutBox)
Declaration
public static SectionLayoutBox GetCurrentSectionBox(this LayoutBox box)
Parameters
LayoutBox
box
|
Returns
SectionLayoutBox
|
GetElement<T>(HierarchicalIndex, RadDocument)
Declaration
public static T GetElement<T>(this HierarchicalIndex index, RadDocument document)
where T : DocumentElement
Parameters
HierarchicalIndex
index
|
RadDocument
document
|
Returns
T
|
Type Parameters
T
|
GetLocation(Rect)
GetSize(Rect)
IntersectsWith(Rect, Rect)
Declaration
public static bool IntersectsWith(this Rect rect, Rect rect1)
Parameters
Rect
rect
|
Rect
rect1
|
Returns
System.Boolean
|
Lighter(Color)
Lighter(Color, Byte)
Declaration
public static Color Lighter(this Color color, byte factor)
Parameters
Color
color
|
System.Byte
factor
|
Returns
Color
|
LighterUsingHsl(Color)
Declaration
public static Color LighterUsingHsl(this Color color)
Parameters
Color
color
|
Returns
Color
|
ProbeDequeue<T>(Queue<T>)
Declaration
public static T ProbeDequeue<T>(this Queue<T> queue)
Parameters
System.Collections.Generic.Queue<T>
queue
|
Returns
T
|
Type Parameters
T
|
ProbePeek<T>(Stack<T>)
Declaration
public static T ProbePeek<T>(this Stack<T> stack)
Parameters
System.Collections.Generic.Stack<T>
stack
|
Returns
T
|
Type Parameters
T
|
ProbePop<T>(Stack<T>)
Declaration
public static T ProbePop<T>(this Stack<T> stack)
Parameters
System.Collections.Generic.Stack<T>
stack
|
Returns
T
|
Type Parameters
T
|
SetAssociatedLayoutBox(UIElement, LayoutBox)
Declaration
public static void SetAssociatedLayoutBox(this UIElement element, LayoutBox value)
Parameters
UIElement
element
|
LayoutBox
value
|
SetSource(BitmapImage, Stream)
Declaration
public static void SetSource(this BitmapImage bitmapImage, Stream imageStream)
Parameters
BitmapImage
bitmapImage
|
System.IO.Stream
imageStream
|
SetSourceEx(BitmapImage, Byte[], ref String)
Declaration
public static byte[] SetSourceEx(this BitmapImage bitmapImage, byte[] imageBytes, ref string extension)
Parameters
BitmapImage
bitmapImage
|
System.Byte[]
imageBytes
|
System.String
extension
|
Returns
System.Byte[]
|
SetSourceEx(BitmapImage, Stream, ref String)
Declaration
public static Stream SetSourceEx(this BitmapImage bitmapImage, Stream imageStream, ref string extension)
Parameters
BitmapImage
bitmapImage
|
System.IO.Stream
imageStream
|
System.String
extension
|
Returns
System.IO.Stream
|
Split(String, String)
Declaration
public static string[] Split(this string input, string separator)
Parameters
System.String
input
|
System.String
separator
|
Returns
System.String[]
|
ToPadding(Thickness)
Declaration
public static Padding ToPadding(this Thickness thickness)
Parameters
Thickness
thickness
|
Returns
Padding
|
ToPoint(PointF)
ToPointF(Point)
ToRect(RectangleF)
Declaration
public static Rect ToRect(this RectangleF rectangle)
Parameters
RectangleF
rectangle
|
Returns
Rect
|
ToRectangleF(Rect)
Declaration
public static RectangleF ToRectangleF(this Rect rectangle)
Parameters
Rect
rectangle
|
Returns
RectangleF
|