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 ChamferedRectShape

Represents a rectangle with chamfered corners.

Inheritance
System.Object
ElementShape
ChamferedRectShape
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

[ComVisible(false)]
public class ChamferedRectShape : ElementShape

Constructors

ChamferedRectShape()

Initializes a new instance of the ChamferedRectShape class.

Declaration
public ChamferedRectShape()

ChamferedRectShape(Int32)

Initializes a new instance of the ChamferedRectShape class.

Declaration
public ChamferedRectShape(int width)
Parameters
System.Int32 width

The width of the chamfer.

ChamferedRectShape(Int32, Int32)

Initializes a new instance of the ChamferedRectShape class.

Declaration
public ChamferedRectShape(int width, int angle)
Parameters
System.Int32 width

The width of the chamfer.

System.Int32 angle

The angle of the chamfer in degrees.

ChamferedRectShape(Int32, Int32, Boolean, Boolean, Boolean, Boolean)

Initializes a new instance of the ChamferedRectShape class.

Declaration
public ChamferedRectShape(int width, int angle, bool topLeftChamfered, bool topRightChamfered, bool bottomRightChamfered, bool bottomLeftChamfered)
Parameters
System.Int32 width

The width of the chamfer.

System.Int32 angle

The angle of the chamfer in degrees.

System.Boolean topLeftChamfered

if set to true the top left corner will be chamfered.

System.Boolean topRightChamfered

if set to true the top right corner will be chamfered.

System.Boolean bottomRightChamfered

if set to true the bottom right corner will be chamfered.

System.Boolean bottomLeftChamfered

if set to true the bottom left corner will be chamfered.

Properties

Angle

Gets or sets the angle of the chamfer in degrees. The value must be between 0 inclusive and 90 exclusive.

Declaration
public int Angle { get; set; }
Property Value
System.Int32

BottomLeftChamfered

Gets or sets a value indicating whether the bottom left corner of the shape will be chamfered.

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

true if the bottom left corner is chamfered; otherwise, false.

BottomRightChamfered

Gets or sets a value indicating whether the bottom right corner of the shape will be chamfered.

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

true if the bottom right corner is chamfered; otherwise, false.

TopLeftChamfered

Gets or sets a value indicating whether the top left corner of the shape will be chamfered.

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

true if the top left corner is be chamfered; otherwise, false.

TopRightChamfered

Gets or sets a value indicating whether the top right corner of the shape will be chamfered.

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

true if the top right corner is be chamfered; otherwise, false.

Width

Gets or sets the width of the chamfer.

Declaration
public int Width { get; set; }
Property Value
System.Int32

Methods

CreatePath(Rectangle)

Creates path using a rectangle for bounds.

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

Returns
System.Drawing.Drawing2D.GraphicsPath

Overrides
ElementShape.CreatePath(Rectangle)

DeserializeProperties(String)

Deserializes properties. Required for telerik deserialization mechanism.

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

Overrides
ElementShape.DeserializeProperties(String)

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.