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