skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

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

    Mobile

    UI for .NET MAUI

    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 Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free 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
    • 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 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>>)
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.