BalloonF

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

Constructors

BalloonF

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

BalloonF

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

BalloonF

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

BalloonF

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

Fields

DefaultCorners

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

DefaultThickness

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

DefaultTipSize

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

Properties

Apex

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

ApexPath

#
public GraphicsPath ApexPath { get; }
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.

Bounds

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

Corners

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

EdgePath

#
public GraphicsPath EdgePath { get; }
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.

FormPath

#
public GraphicsPath FormPath { get; }
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.

Thickness

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

TipShadowPath

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

TipSize

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

Methods

Move

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

MoveTo

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

VertexAt

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