Class
OfficeShape

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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
[ComVisible(false)]
public class OfficeShape : ElementShape, IComponent, IDisposable

Inheritance: objectMarshalByRefObjectComponentElementShapeOfficeShape

Implements: IComponentIDisposable

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(bool)ElementShape.IsRightToLeftComponent.Dispose()Component.GetService(Type)Component.ToString()Component.CanRaiseEventsComponent.EventsComponent.SiteComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

OfficeShape()

Initializes a new instance of the OfficeShape class.

Declaration

cs-api-definition
public OfficeShape()

OfficeShape(bool)

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

Declaration

cs-api-definition
public OfficeShape(bool roundedBottom)

Parameters

roundedBottom

bool

Whether the bottom edges should be rounded.

Properties

RoundedBottom

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

Declaration

cs-api-definition
public bool RoundedBottom { get; set; }

Property Value

bool

Methods

CreatePath(Rectangle)

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

Declaration

cs-api-definition
public override GraphicsPath CreatePath(Rectangle bounds)

Parameters

bounds

Rectangle

The bounding rectangle for the Office shape.

Returns

GraphicsPath

A GraphicsPath representing the Office shape.

Overrides ElementShape.CreatePath(Rectangle)

DeserializeProperties(string)

Deserializes properties from a string representation.

Declaration

cs-api-definition
public override void DeserializeProperties(string propertiesString)

Parameters

propertiesString

string

The string containing serialized properties.

Overrides ElementShape.DeserializeProperties(string)

GetBounds(RadElement)

Declaration

cs-api-definition
protected override Rectangle GetBounds(RadElement element)

Parameters

element

RadElement

Returns

Rectangle

Overrides ElementShape.GetBounds(RadElement)

GetContourPath(Rectangle)

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

Declaration

cs-api-definition
public GraphicsPath GetContourPath(Rectangle bounds)

Parameters

bounds

Rectangle

The bounding rectangle for the contour path.

Returns

GraphicsPath

A GraphicsPath representing the contour of the Office shape.

SerializeProperties()

Serializes the shape properties to a string representation.

Declaration

cs-api-definition
public override string SerializeProperties()

Returns

string

A string containing the serialized properties.

Overrides ElementShape.SerializeProperties()