public class Label
A single label.

Constructors

Label

#
public Label(Font font, Color colour, string text, PointF position, LabelAlignment horizontal, LabelAlignment vertical, SizeF padding, LabelFreedom freedom)
Create a new label from basic data and alignment.
font (Font)Label font.
colour (Color)Label colour.
text (string)Label text, must contain actual characters.
position (PointF)Base position.
horizontal (LabelAlignment)Horizontal label alignment with respect to position.
vertical (LabelAlignment)Vertical label alignment with respect to position.
padding (SizeF)Amount of padding around label box.
freedom (LabelFreedom)Motion freedom.

Properties

Box

#
public RectangleF Box { get; }
Gets the label bounds.

Colour

#
public Color Colour { get; }
Gets the colour for this label.

Font

#
public Font Font { get; }
Gets the font for this label.

Freedom

#
public LabelFreedom Freedom { get; }
Gets the freedom of this label.

Point

#
public PointF Point { get; }
Gets the text drawing point.

Text

#
public string Text { get; }
Gets the label text.