New to Telerik UI for WinFormsStart a free 30-day trial

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

Definition

Constructors

Initializes a new instance of the OfficeShape class.

C#
public OfficeShape()

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

C#
public OfficeShape(bool roundedBottom)
Parameters:roundedBottombool

Whether the bottom edges should be rounded.

Properties

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

C#
public bool RoundedBottom { get; set; }

Methods

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

C#
public override GraphicsPath CreatePath(Rectangle bounds)
Parameters:boundsRectangle

The bounding rectangle for the Office shape.

Returns:

GraphicsPath

A GraphicsPath representing the Office shape.

Overrides: ElementShape.CreatePath(Rectangle)

Deserializes properties from a string representation.

C#
public override void DeserializeProperties(string propertiesString)
Parameters:propertiesStringstring

The string containing serialized properties.

Overrides: ElementShape.DeserializeProperties(string)

C#
protected override Rectangle GetBounds(RadElement element)
Parameters:elementRadElementReturns:

Rectangle

Overrides: ElementShape.GetBounds(RadElement)

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

C#
public GraphicsPath GetContourPath(Rectangle bounds)
Parameters:boundsRectangle

The bounding rectangle for the contour path.

Returns:

GraphicsPath

A GraphicsPath representing the contour of the Office shape.

Serializes the shape properties to a string representation.

C#
public override string SerializeProperties()
Returns:

string

A string containing the serialized properties.

Overrides: ElementShape.SerializeProperties()