ClassElementShape
Represents the base class for element shapes that define the visual geometry of UI elements.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
[TypeConverter(typeof(ElementShapeConverter))]
public abstract class ElementShape : Component, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentElementShape
Derived Classes:
Implements:
Inherited Members
Constructors
ElementShape()
Declaration
public ElementShape()
ElementShape(IContainer)
Declaration
public ElementShape(IContainer container)
Parameters
container
Properties
IsRightToLeft
Gets or sets a value indicating whether the shape should be rendered for right-to-left layouts.
Declaration
public bool IsRightToLeft { get; set; }
Property Value
true if the shape supports right-to-left rendering; otherwise, false.
Methods
CreateContour(Rectangle)
Declaration
protected virtual GraphicsPath CreateContour(Rectangle bounds)
Parameters
bounds
Returns
CreatePath(Rectangle)
Creates a GraphicsPath using the specified rectangle as bounds. This method must be implemented by derived classes.
Declaration
public abstract GraphicsPath CreatePath(Rectangle bounds)
Parameters
bounds
The rectangle defining the bounds for the shape.
Returns
A GraphicsPath representing the shape within the specified bounds.
CreatePath(RectangleF)
Creates a GraphicsPath using the specified rectangle as bounds with floating-point precision.
Declaration
public virtual GraphicsPath CreatePath(RectangleF bounds)
Parameters
bounds
The rectangle defining the bounds for the shape.
Returns
A GraphicsPath representing the shape within the specified bounds.
DeserializeProperties(string)
Deserializes properties. Required for the deserialization mechanism of telerik framework.
Declaration
public virtual void DeserializeProperties(string propertiesString)
Parameters
propertiesString
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
Overrides
GetBounds(RadElement)
Declaration
protected virtual Rectangle GetBounds(RadElement element)
Parameters
element
Returns
GetElementContour(RadElement)
Retrieves the contour path for the specified element.
Declaration
public GraphicsPath GetElementContour(RadElement element)
Parameters
element
The element for which to create the contour.
Returns
A GraphicsPath representing the element's contour.
Remarks
The contour typically represents the outline or border of the element's shape.
GetElementContour(Rectangle)
Declaration
public GraphicsPath GetElementContour(Rectangle bounds)
Parameters
bounds
Returns
GetElementShape(RadElement)
Retrieves the shape path for the specified element.
Declaration
public GraphicsPath GetElementShape(RadElement element)
Parameters
element
The element for which to create the shape.
Returns
A GraphicsPath representing the element's shape.
Remarks
The GraphicsPath represents a series of connected lines and curves that define the element's geometry.
MirrorPath(GraphicsPath, RectangleF)
Mirrors the GraphicsPath. Used in RightToLeft mode.
Declaration
protected virtual void MirrorPath(GraphicsPath graphicsPath, RectangleF bounds)
Parameters
graphicsPath
bounds
SerializeProperties()
Serializes properties. Required for serialization mechanism of telerik framework.