skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI UI for Xamarin

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility and Security
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ExtensionMethods

Inheritance
System.Object
ExtensionMethods
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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)

Declaration
public static Color Darker(this Color color)
Parameters
Color color

Returns
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)

Declaration
public static Point GetLocation(this Rect rect)
Parameters
Rect rect

Returns
Point

GetSize(Rect)

Declaration
public static Size GetSize(this Rect rect)
Parameters
Rect rect

Returns
Size

IntersectsWith(Rect, Rect)

Declaration
public static bool IntersectsWith(this Rect rect, Rect rect1)
Parameters
Rect rect

Rect rect1

Returns
System.Boolean

Lighter(Color)

Declaration
public static Color Lighter(this Color color)
Parameters
Color color

Returns
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)

Declaration
public static Point ToPoint(this PointF point)
Parameters
PointF point

Returns
Point

ToPointF(Point)

Declaration
public static PointF ToPointF(this Point point)
Parameters
Point point

Returns
PointF

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

ToSizeF(Size)

Declaration
public static SizeF ToSizeF(this Size size)
Parameters
Size size

Returns
SizeF

ToThickness(Padding)

Declaration
public static Thickness ToThickness(this Padding padding)
Parameters
Padding padding

Returns
Thickness

Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.