BalloonF

References
public struct BalloonF
Represents a balloon-like box with rounded corners.

Constructors

BalloonF

#
Create a balloon big enough to contain some text.
public BalloonF(
PointF
tip,
Font
font,
text,
thickness,
corners,
tipSize
)

BalloonF

#
Create a balloon big enough to contain some text.
public BalloonF(
PointF
tip,
Font
font,
text
)

BalloonF

#
Create a balloon with custom corners and thickness.
public BalloonF(
PointF
tip,
SizeF
size,
thickness,
corners,
tipSize
)

BalloonF

#
Create a balloon with default corners and thickness.
public BalloonF(
PointF
tip,
SizeF
size
)

Fields

DefaultCorners

#
Gets the default corner radius for visually pleasing message balloons.
public const int DefaultCorners = 5

DefaultThickness

#
Gets the default slab thickness for visually pleasing message balloons.
public const int DefaultThickness = 3

DefaultTipSize

#
Gets the default tip size for visually pleasing message balloons.
public const int DefaultTipSize = 5

Properties

Apex

#
Gets the bounds of the slab top face.
public RectangleF Apex { get; }

ApexPath

#
Gets the graphics path describing the silhouette of the top face. This path is created anew on each call and it is the responsibility of the caller to dispose of it.
public GraphicsPath ApexPath { get; }

Bounds

#
Gets the outer bounds of the balloon, this does *not* include the tip geometry.
public RectangleF Bounds { get; }

Corners

#
Gets the corner radii values.
public float Corners { get; }

EdgePath

#
Gets the graphics path describing the edge between the front and side faces. This path is created anew on each call and it is the responsibility of the caller to dispose of it.
public GraphicsPath EdgePath { get; }

FormPath

#
Gets the graphics path describing the silhouette of the entire balloon. This path is created anew on each call and it is the responsibility of the caller to dispose of it.
public GraphicsPath FormPath { get; }

Thickness

#
Gets the thickness of the balloon.
public float Thickness { get; }

TipShadowPath

#
Gets the graphics path describing the shadowy part of the tip.
public GraphicsPath TipShadowPath { get; }

TipSize

#
Gets the tip-size for this balloon.
public float TipSize { get; }

Methods

Move

#
Move this balloon to a different location.
public BalloonF Move(
dx,
Horizontal offset.
dy
Vertical offset.
)

MoveTo

#
Move this balloon to a specific tip location.
public BalloonF MoveTo(
PointF
anchor
Location of tip point.
)

VertexAt

#
Gets the coordinates of the specified vertex.
public PointF VertexAt(
vertex
Vertex to retrieve.
)
Coordinates of vertex.