public Path AddPie(
RectangleF bounds,
float startAngle,
float sweepAngle
)Public Function AddPie (
bounds As RectangleF,
startAngle As Single,
sweepAngle As Single
) As Pathpublic:
Path^ AddPie(
RectangleF bounds,
float startAngle,
float sweepAngle
)member AddPie :
bounds : RectangleF *
startAngle : float32 *
sweepAngle : float32 -> Path The pie shape is defined by a partial outline of an ellipse and the two radial lines that intersect the endpoints of the partial outline. The pie shape is added as a new closed figure.
The coordinates of the specified bounding rectangle are not validated here, but in the moment of drawing the coordinates of the possibly transformed path points must fall into the bounds of an int value; otherwise, an OverflowException will be thrown.