New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinForms.Documents.Layout

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public static class ExtensionMethods

Inheritance: objectExtensionMethods

Methods

C#
public static Size AddWidth(this Size size1, Size size2)
Parameters:size1Sizesize2SizeReturns:

Size

C#
public static bool AreClose(this RectangleF rect1, RectangleF rect2)
Parameters:rect1RectangleFrect2RectangleFReturns:

bool

C#
public static Color BlendWith(this Color color, Color backColor)
Parameters:colorColorbackColorColorReturns:

Color

C#
public static Color Darker(this Color color, byte factor)
Parameters:colorColorfactorbyteReturns:

Color

C#
public static Color Darker(this Color color)
Parameters:colorColorReturns:

Color

C#
public static LayoutBox GetAssociatedLayoutBox(this UIElement element)
Parameters:elementUIElementReturns:

LayoutBox

C#
public static SectionLayoutBox GetCurrentSectionBox(this LayoutBox box)
Parameters:boxLayoutBoxReturns:

SectionLayoutBox

C#
public static T GetElement<T>(this HierarchicalIndex index, RadDocument document) where T : DocumentElement
Parameters:indexHierarchicalIndexdocumentRadDocumentReturns:

T

C#
public static Point GetLocation(this Rect rect)
Parameters:rectRectReturns:

Point

C#
public static Size GetSize(this Rect rect)
Parameters:rectRectReturns:

Size

C#
public static bool IntersectsWith(this Rect rect, Rect rect1)
Parameters:rectRectrect1RectReturns:

bool

C#
public static Color Lighter(this Color color, byte factor)
Parameters:colorColorfactorbyteReturns:

Color

C#
public static Color Lighter(this Color color)
Parameters:colorColorReturns:

Color

C#
public static Color LighterUsingHsl(this Color color)
Parameters:colorColorReturns:

Color

C#
public static T ProbeDequeue<T>(this Queue<T> queue)
Parameters:queueQueue<T>Returns:

T

C#
public static T ProbePeek<T>(this Stack<T> stack)
Parameters:stackStack<T>Returns:

T

C#
public static T ProbePop<T>(this Stack<T> stack)
Parameters:stackStack<T>Returns:

T

C#
public static void SetAssociatedLayoutBox(this UIElement element, LayoutBox value)
Parameters:elementUIElementvalueLayoutBox
C#
public static void SetSource(this BitmapImage bitmapImage, Stream imageStream)
Parameters:bitmapImageBitmapImageimageStreamStream
C#
public static byte[] SetSourceEx(this BitmapImage bitmapImage, byte[] imageBytes, ref string extension)
Parameters:bitmapImageBitmapImageimageBytesbyte[]extensionstringReturns:

byte[]

C#
public static Stream SetSourceEx(this BitmapImage bitmapImage, Stream imageStream, ref string extension)
Parameters:bitmapImageBitmapImageimageStreamStreamextensionstringReturns:

Stream

C#
public static string[] Split(this string input, string separator)
Parameters:inputstringseparatorstringReturns:

string[]

C#
public static Padding ToPadding(this Thickness thickness)
Parameters:thicknessThicknessReturns:

Padding

C#
public static Point ToPoint(this PointF point)
Parameters:pointPointFReturns:

Point

C#
public static PointF ToPointF(this Point point)
Parameters:pointPointReturns:

PointF

C#
public static Rect ToRect(this RectangleF rectangle)
Parameters:rectangleRectangleFReturns:

Rect

C#
public static RectangleF ToRectangleF(this Rect rectangle)
Parameters:rectangleRectReturns:

RectangleF

C#
public static SizeF ToSizeF(this Size size)
Parameters:sizeSizeReturns:

SizeF

C#
public static Thickness ToThickness(this Padding padding)
Parameters:paddingPaddingReturns:

Thickness