ClassOfficeShape
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:
[ComVisible(false)]
public class OfficeShape : ElementShape, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentElementShapeOfficeShape
Implements:
Inherited Members
Constructors
OfficeShape()
Initializes a new instance of the OfficeShape class.
Declaration
public OfficeShape()
OfficeShape(bool)
Initializes a new instance of the OfficeShape class with specified bottom rounding.
Declaration
public OfficeShape(bool roundedBottom)
Parameters
roundedBottom
Whether the bottom edges should be rounded.
Properties
RoundedBottom
Gets or sets whether the bottom edges of the form should be rounded.
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
bounds
The bounding rectangle for the Office shape.
Returns
A GraphicsPath representing the Office shape.
Overrides
DeserializeProperties(string)
Deserializes properties from a string representation.
Declaration
public override void DeserializeProperties(string propertiesString)
Parameters
propertiesString
The string containing serialized properties.
Overrides
GetBounds(RadElement)
Declaration
protected override Rectangle GetBounds(RadElement element)
Parameters
element
Returns
Overrides
GetContourPath(Rectangle)
Gets a contour path for the Office shape with the specified bounds.
Declaration
public GraphicsPath GetContourPath(Rectangle bounds)
Parameters
bounds
The bounding rectangle for the contour path.
Returns
A GraphicsPath representing the contour of the Office shape.
SerializeProperties()
Serializes the shape properties to a string representation.
Declaration
public override string SerializeProperties()
Returns
A string containing the serialized properties.
Overrides