CalloutElementShape
Defines a callout shape, base on the settings defined in CalloutShapeSettings class.
Definition
Namespace:Telerik.WinControls.UI.Callout
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CalloutElementShape : PathElementShape, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentElementShapeCustomShapePathElementShapeCalloutElementShape...
Implements:
Inherited Members
Constructors
Initializes a new instance of the CalloutElementShape class with its default shape settings.
public CalloutElementShape()
Properties
Gets the settings used to create this callout shape.
public CalloutShapeSettings ShapeSettings { get; }
Methods
Creates the settings object used to generate this shape; override to provide specialized settings.
protected virtual CalloutShapeSettings CreateCalloutShapeSettings()
The settings used by CreatePathCore(Rectangle, bool).
Creates a GraphicsPath based on the given bounds.
public override GraphicsPath CreatePath(Rectangle bounds)
The bounds of the shape.
Returns:The graphics path.
Overrides:
Creates the callout path from ShapeSettings; border paths adjust arrow vertices for border alignment.
Reduces the arrow width and corner diameter when they do not fit along the available side length. If the side is shorter than the minimum arrow length, both values are set to zero.
protected virtual void TruncateArrowWidthAndCornerDiameter(int sideLength, ref int arrowWidth, ref int cornerDiameter)
The length available for the arrow and corner.
arrowWidthintThe requested arrow width, reduced as needed.
cornerDiameterintThe requested corner diameter, reduced as needed.