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 OfficeShape

Represents a Microsoft Office-style element shape with rounded corners and optional rounded bottom edges.

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

Syntax

[ComVisible(false)]
public class OfficeShape : ElementShape

Constructors

OfficeShape()

Initializes a new instance of the OfficeShape class.

Declaration
public OfficeShape()

OfficeShape(Boolean)

Initializes a new instance of the OfficeShape class with specified bottom rounding.

Declaration
public OfficeShape(bool roundedBottom)
Parameters
System.Boolean roundedBottom

Whether the bottom edges should be rounded.

Properties

RoundedBottom

Gets or sets whether the bottom edges of the form should be rounded.

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

Methods

CreatePath(Rectangle)

Creates an Office-style graphics path with rounded corners and optional rounded bottom edges.

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

The bounding rectangle for the Office shape.

Returns
System.Drawing.Drawing2D.GraphicsPath

A System.Drawing.Drawing2D.GraphicsPath representing the Office shape.

Overrides
ElementShape.CreatePath(Rectangle)

DeserializeProperties(String)

Deserializes properties from a string representation.

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

The string containing serialized properties.

Overrides
ElementShape.DeserializeProperties(String)

GetBounds(RadElement)

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

Returns
System.Drawing.Rectangle

Overrides
ElementShape.GetBounds(RadElement)

GetContourPath(Rectangle)

Gets a contour path for the Office shape with the specified bounds.

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

The bounding rectangle for the contour path.

Returns
System.Drawing.Drawing2D.GraphicsPath

A System.Drawing.Drawing2D.GraphicsPath representing the contour of the Office shape.

SerializeProperties()

Serializes the shape properties to a string representation.

Declaration
public override string SerializeProperties()
Returns
System.String

A string containing the serialized properties.

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.