ElementShape
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
public ElementShape()
Properties
Gets or sets a value indicating whether the shape should be rendered for right-to-left layouts.
public bool IsRightToLeft { get; set; }
true if the shape supports right-to-left rendering; otherwise, false.
Methods
protected virtual GraphicsPath CreateContour(Rectangle bounds)
Creates a GraphicsPath using the specified rectangle as bounds. This method must be implemented by derived classes.
public abstract GraphicsPath CreatePath(Rectangle bounds)
The rectangle defining the bounds for the shape.
Returns:A GraphicsPath representing the shape within the specified bounds.
Creates a GraphicsPath using the specified rectangle as bounds with floating-point precision.
public virtual GraphicsPath CreatePath(RectangleF bounds)
The rectangle defining the bounds for the shape.
Returns:A GraphicsPath representing the shape within the specified bounds.
Deserializes properties. Required for the deserialization mechanism of telerik framework.
public virtual void DeserializeProperties(string propertiesString)
Retrieves the contour path for the specified element.
public GraphicsPath GetElementContour(RadElement element)
The element for which to create the contour.
Returns:A GraphicsPath representing the element's contour.
The contour typically represents the outline or border of the element's shape.
Retrieves the shape path for the specified element.
public GraphicsPath GetElementShape(RadElement element)
The element for which to create the shape.
Returns:A GraphicsPath representing the element's shape.
The GraphicsPath represents a series of connected lines and curves that define the element's geometry.
Mirrors the GraphicsPath. Used in RightToLeft mode.
protected virtual void MirrorPath(GraphicsPath graphicsPath, RectangleF bounds)
Serializes properties. Required for serialization mechanism of telerik framework.