Class OfficeShape
Represents a Microsoft Office-style element shape with rounded corners and optional rounded bottom edges.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.dll
Syntax
[ComVisible(false)]
public class OfficeShape : ElementShape
Constructors
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
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
GetBounds(RadElement)
Declaration
protected override Rectangle GetBounds(RadElement element)
Parameters
RadElement
element
|
Returns
System.Drawing.Rectangle
|
Overrides
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. |