New to Telerik UI for WinForms? Start a free 30-day trial

Defines a callout shape, base on the settings defined in CalloutShapeSettings class.

Definition

Namespace:Telerik.WinControls.UI.Callout

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class CalloutElementShape : PathElementShape, IComponent, IDisposable

Inheritance: objectMarshalByRefObjectComponentElementShapeCustomShapePathElementShapeCalloutElementShape...

Implements: IComponentIDisposable

Inherited Members PathElementShape.SerializeProperties()PathElementShape.DeserializeProperties(string)PathElementShape.BoundsPathElementShape.OwnerPathElementShape.PathPathElementShape.ScaledPathCustomShape.Clone()CustomShape.CopyFrom(CustomShape)CustomShape.GetBoundingRectangle()CustomShape.DoFixDimension(bool)CustomShape.DoFixDimension()CustomShape.AddLine(PointF, PointF)CustomShape.AddBezier(PointF, PointF, PointF, PointF)CustomShape.AppendLine(PointF)CustomShape.AppendBezier(PointF, PointF, PointF)CustomShape.CloseFigureUsingLine()CustomShape.CloseFigureUsingBezier(PointF, PointF)CustomShape.CreateClosedShape(ShapePoint[])CustomShape.CreateClosedShape(PointF[])CustomShape.CreateClosedShape(List<PointF>)CustomShape.CreateRectangleShape(PointF, PointF)CustomShape.CreateRectangleShape(float, float, float, float)CustomShape.CreateRectangleShape(PointF, SizeF)CustomShape.CreateRectangleShape(Rectangle)CustomShape.DimensionCustomShape.ShapeCustomShape.AsStringElementShape.GetElementShape(RadElement)ElementShape.GetElementContour(RadElement)ElementShape.GetElementContour(Rectangle)ElementShape.CreateRegion(Rectangle)ElementShape.GetBounds(RadElement)ElementShape.CreatePath(RectangleF)ElementShape.CreateContour(Rectangle)ElementShape.MirrorPath(GraphicsPath, RectangleF)ElementShape.ShouldMirrorPath()ElementShape.Dispose(bool)ElementShape.IsRightToLeft...

Constructors

Initializes a new instance of the CalloutElementShape class with its default shape settings.

C#
public CalloutElementShape()

Properties

Gets the settings used to create this callout shape.

C#
public CalloutShapeSettings ShapeSettings { get; }

Methods

Creates the settings object used to generate this shape; override to provide specialized settings.

C#
protected virtual CalloutShapeSettings CreateCalloutShapeSettings()
Returns:

CalloutShapeSettings

The settings used by CreatePathCore(Rectangle, bool).

Creates a GraphicsPath based on the given bounds.

C#
public override GraphicsPath CreatePath(Rectangle bounds)
Parameters:boundsRectangle

The bounds of the shape.

Returns:

GraphicsPath

The graphics path.

Overrides: PathElementShape.CreatePath(Rectangle)

Creates the callout path from ShapeSettings; border paths adjust arrow vertices for border alignment.

C#
protected virtual GraphicsPath CreatePathCore(Rectangle bounds, bool isBorder)
Parameters:boundsRectangle

The rectangle occupied by the callout.

isBorderbool

true to align arrow vertices with a border; otherwise, creates the fill path.

Returns:

GraphicsPath

The path describing the callout outline.

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.

C#
protected virtual void TruncateArrowWidthAndCornerDiameter(int sideLength, ref int arrowWidth, ref int cornerDiameter)
Parameters:sideLengthint

The length available for the arrow and corner.

arrowWidthint

The requested arrow width, reduced as needed.

cornerDiameterint

The requested corner diameter, reduced as needed.