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 CustomShape

Inheritance
System.Object
ElementShape
CustomShape
PathElementShape
Inherited Members
ElementShape.GetElementShape(RadElement)
ElementShape.GetElementContour(RadElement)
ElementShape.GetElementContour(Rectangle)
ElementShape.CreateRegion(Rectangle)
ElementShape.GetBounds(RadElement)
ElementShape.CreatePath(RectangleF)
ElementShape.CreateContour(Rectangle)
ElementShape.MirrorPath(GraphicsPath, RectangleF)
ElementShape.ShouldMirrorPath()
ElementShape.Dispose(Boolean)
ElementShape.IsRightToLeft
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll

Syntax

public class CustomShape : ElementShape

Constructors

CustomShape()

Declaration
public CustomShape()

CustomShape(IContainer)

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

CustomShape(Rectangle)

Declaration
public CustomShape(Rectangle rect)
Parameters
System.Drawing.Rectangle rect

Properties

AsString

Declaration
public string AsString { get; set; }
Property Value
System.String

Dimension

Declaration
public Rectangle Dimension { get; set; }
Property Value
System.Drawing.Rectangle

Shape

Declaration
public ShapeLinesCollection Shape { get; set; }
Property Value
ShapeLinesCollection

Methods

AddBezier(PointF, PointF, PointF, PointF)

Declaration
public void AddBezier(PointF from, PointF ctrl1, PointF ctrl2, PointF to)
Parameters
System.Drawing.PointF from

System.Drawing.PointF ctrl1

System.Drawing.PointF ctrl2

System.Drawing.PointF to

AddLine(PointF, PointF)

Declaration
public void AddLine(PointF from, PointF to)
Parameters
System.Drawing.PointF from

System.Drawing.PointF to

AppendBezier(PointF, PointF, PointF)

Declaration
public bool AppendBezier(PointF ctrl1, PointF ctrl2, PointF to)
Parameters
System.Drawing.PointF ctrl1

System.Drawing.PointF ctrl2

System.Drawing.PointF to

Returns
System.Boolean

AppendLine(PointF)

Declaration
public bool AppendLine(PointF to)
Parameters
System.Drawing.PointF to

Returns
System.Boolean

Clone()

Declaration
public CustomShape Clone()
Returns
CustomShape

CloseFigureUsingBezier(PointF, PointF)

Declaration
public bool CloseFigureUsingBezier(PointF ctrl1, PointF ctrl2)
Parameters
System.Drawing.PointF ctrl1

System.Drawing.PointF ctrl2

Returns
System.Boolean

CloseFigureUsingLine()

Declaration
public bool CloseFigureUsingLine()
Returns
System.Boolean

CopyFrom(CustomShape)

Declaration
public void CopyFrom(CustomShape cs)
Parameters
CustomShape cs

CreateClosedShape(List<PointF>)

Declaration
public bool CreateClosedShape(List<PointF> points)
Parameters
System.Collections.Generic.List<System.Drawing.PointF> points

Returns
System.Boolean

CreateClosedShape(PointF[])

Declaration
public bool CreateClosedShape(PointF[] points)
Parameters
System.Drawing.PointF[] points

Returns
System.Boolean

CreateClosedShape(ShapePoint[])

Declaration
protected bool CreateClosedShape(ShapePoint[] pts)
Parameters
ShapePoint[] pts

Returns
System.Boolean

CreatePath(Rectangle)

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

Returns
System.Drawing.Drawing2D.GraphicsPath

Overrides
ElementShape.CreatePath(Rectangle)

CreateRectangleShape(PointF, PointF)

Declaration
public void CreateRectangleShape(PointF from, PointF to)
Parameters
System.Drawing.PointF from

System.Drawing.PointF to

CreateRectangleShape(PointF, SizeF)

Declaration
public void CreateRectangleShape(PointF pos, SizeF size)
Parameters
System.Drawing.PointF pos

System.Drawing.SizeF size

CreateRectangleShape(Rectangle)

Declaration
public void CreateRectangleShape(Rectangle rect)
Parameters
System.Drawing.Rectangle rect

CreateRectangleShape(Single, Single, Single, Single)

Declaration
public void CreateRectangleShape(float x, float y, float width, float height)
Parameters
System.Single x

System.Single y

System.Single width

System.Single height

DeserializeProperties(String)

Deserializes properties. Required for telerik deserialization mechanism.

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

Overrides
ElementShape.DeserializeProperties(String)

DoFixDimension()

Declaration
public bool DoFixDimension()
Returns
System.Boolean

DoFixDimension(Boolean)

Declaration
public bool DoFixDimension(bool forceFix)
Parameters
System.Boolean forceFix

Returns
System.Boolean

GetBoundingRectangle()

Declaration
public RectangleF GetBoundingRectangle()
Returns
System.Drawing.RectangleF

SerializeProperties()

Serializes properties. Required for telerik serialization mechanism.

Declaration
public override string SerializeProperties()
Returns
System.String

Overrides
ElementShape.SerializeProperties()

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.