TextBalloonF

References
public class TextBalloonF : IDisposable
A BalloonF shape surrounding some lines of text.

Properties

InnerBounds

#
public RectangleF InnerBounds { get; }
Gets the bounds of the text of this balloon.

Lines

#
public string[] Lines { get; }
Gets the individual lines drawn in this ballooon. Null entries in the line array indicate a separator line.

OuterBounds

#
public RectangleF OuterBounds { get; }
Gets the outer bounds of this balloon.

Outline

#
public GraphicsPath Outline { get; }
Gets the full outline of the balloon.

Tip

#
public PointF Tip { get; }
Gets the tip of the balloon.

Methods

Create

#
public static TextBalloonF Create(Font font, PointF tip, int side, float maximumWidth, params string[] content)
Create a new balloon.
font (Font)Font to use.
tip (PointF)Location of tip.
side (int)Size of tip (0=below, 1=above, 2=left, 3=right).
maximumWidth (float)Maximum width hint of balloon. Words in the text will be broken into lines to try and reduce the width of the ballon to fall under this limit.
content (params string[])String to display inside balloon.

Dispose

#
public void Dispose()

Draw

#
public void Draw(Graphics graphics, Shade shade, float scale = 1)
Draw the text balloon into a graphics context.
graphics (Graphics)Graphics object.
shade (Shade)Shade.
scale (float = 1)Scale.