NoticeSparkle

public sealed class NoticeSparkle : ISparkle
A notice sparkle conveying a specific type of message.

Constructors

NoticeSparkle

#
public NoticeSparkle(NoticeType notice, Func<PointF> location, bool attachedToContent, Color colour)
Create a new notice sparkle with a specific foreground colour.
notice (NoticeType)Notice type.
location (Func<PointF>)Location of notice.
attachedToContent (bool)True if location is relative to control content.
colour (Color)Foreground colour of the notice.

NoticeSparkle

#
public NoticeSparkle(NoticeType notice, Func<PointF> location, bool attachedToContent)
Create a new notice sparkle.
notice (NoticeType)Notice type.
location (Func<PointF>)Location of notice.
attachedToContent (bool)True if location is relative to control content.

NoticeSparkle

#
public NoticeSparkle(NoticeType notice, PointF location, bool attachedToContent)
Create a new notice sparkle.
notice (NoticeType)Notice type.
location (PointF)Location of notice.
attachedToContent (bool)True if location is relative to control content.

Properties

AttachedToContent

#
public bool AttachedToContent { get; }
Gets whether this sparkle is attached to the control content.

End

#
public DateTime End { get; }
Gets the end time of this sparkle. The end time depends on start time and flavour duration.

ForeColour

#
public Color ForeColour { get; }
Gets the foreground colour of this sparkle.

Location

#
public Func<PointF> Location { get; }
Gets the location of this sparkle.

Notice

#
public NoticeType Notice { get; }
Gets the type of notice for this sparkle.

Sparkling

#
public bool Sparkling { get; }
Gets whether this sparkle is still busy sparkling.
Sparkling

Start

#
public DateTime Start { get; }
Gets the start time of this sparkle.

Methods

Draw

#
public void Draw(ControlGraphics graphics)
Draw this sparkle to a graphics context.
graphics (ControlGraphics)Context to draw in.
Draw