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 ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    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 UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ElementShape

Represents element shape. Base class for specialized shapes such as EllipseShape, RoundRectShape, Office12Shape, etc.

Inheritance
System.Object
ElementShape
ChamferedRectShape
CircleShape
CustomShape
EllipseShape
CustomShape
RoundRectShape
DonutShape
MediaShape
QAShape
DiamondShape
GanttViewSummaryLeftElement.LeftShape
GanttViewSummaryRightElement.RightShape
GaugeVisualElement.GaugeShape
RadialGaugeBackground.GaugeBackgroundShape
HeartShape
OfficeShape
StarShape
TabEdgeShape
TabIEShape
TabItemShape
TabOffice12Shape
TabVsShape
TrackBarDThumbShape
TrackBarLThumbShape
TrackBarRThumbShape
TrackBarUThumbShape
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll

Syntax

public abstract class ElementShape : Component

Constructors

ElementShape()

Declaration
public ElementShape()

ElementShape(IContainer)

Declaration
public ElementShape(IContainer container)
Parameters
System.ComponentModel.IContainer container

Properties

IsRightToLeft

Declaration
public bool IsRightToLeft { get; set; }
Property Value
System.Boolean

Methods

CreateContour(Rectangle)

Declaration
protected virtual GraphicsPath CreateContour(Rectangle bounds)
Parameters
System.Drawing.Rectangle bounds

Returns
System.Drawing.Drawing2D.GraphicsPath

CreatePath(Rectangle)

Creates path using a rectangle for bounds.

Declaration
public abstract GraphicsPath CreatePath(Rectangle bounds)
Parameters
System.Drawing.Rectangle bounds

Returns
System.Drawing.Drawing2D.GraphicsPath

CreatePath(RectangleF)

Creates path using a rectangle for bounds.

Declaration
public virtual GraphicsPath CreatePath(RectangleF bounds)
Parameters
System.Drawing.RectangleF bounds

Returns
System.Drawing.Drawing2D.GraphicsPath

CreateRegion(Rectangle)

Declaration
public virtual Region CreateRegion(Rectangle bounds)
Parameters
System.Drawing.Rectangle bounds

Returns
System.Drawing.Region

DeserializeProperties(String)

Deserializes properties. Required for the deserialization mechanism of telerik framework.

Declaration
public virtual void DeserializeProperties(string propertiesString)
Parameters
System.String propertiesString

Dispose(Boolean)

Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean disposing

GetBounds(RadElement)

Declaration
protected virtual Rectangle GetBounds(RadElement element)
Parameters
RadElement element

Returns
System.Drawing.Rectangle

GetElementContour(Rectangle)

Declaration
public GraphicsPath GetElementContour(Rectangle bounds)
Parameters
System.Drawing.Rectangle bounds

Returns
System.Drawing.Drawing2D.GraphicsPath

GetElementContour(RadElement)

Retrieves the contour of the element0. GraphicsPath represents a series of connected lines and curves.

Declaration
public GraphicsPath GetElementContour(RadElement element)
Parameters
RadElement element

Returns
System.Drawing.Drawing2D.GraphicsPath

GetElementShape(RadElement)

Retrieves the shape of the element. GraphicsPath represents a series of connected lines and curves.

Declaration
public GraphicsPath GetElementShape(RadElement element)
Parameters
RadElement element

Returns
System.Drawing.Drawing2D.GraphicsPath

MirrorPath(GraphicsPath, RectangleF)

Mirrors the GraphicsPath. Used in RightToLeft mode.

Declaration
protected virtual void MirrorPath(GraphicsPath graphicsPath, RectangleF bounds)
Parameters
System.Drawing.Drawing2D.GraphicsPath graphicsPath

System.Drawing.RectangleF bounds

SerializeProperties()

Serializes properties. Required for serialization mechanism of telerik framework.

Declaration
public virtual string SerializeProperties()
Returns
System.String

ShouldMirrorPath()

Declaration
protected virtual bool ShouldMirrorPath()
Returns
System.Boolean

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

Tell us how we can improve this article

Skip
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.