CommandTile

TileReferences
public sealed class CommandTile : Tile
A command tile.

Properties

BackFace

protected int BackFace { get; }
Gets the index of the back face currently being painted by Tile.DrawFaceB(Graphics, RectangleF, Color, Color).
inherited fromTile

Bounds

public RectangleF Bounds { get; set; }
Gets or sets the bounds for this tile. Please do not set this yourself... A tile may draw outside of its bounds during rotation.
inherited fromTile

Colour

public Color Colour { get; set; }
Gets the colour to be used for this tile.
inherited fromTile

Info

#
public string Info { get; }

Kind

public TileKind Kind { get; }
Gets the kind of this tile.
inherited fromTile

RotationAngle

protected float RotationAngle { get; }
Gets the progress of the current flip, from zero (old face flat) to one (new face flat).
inherited fromTile

Text

#
public string Text { get; }

Methods

BackFaceAt

protected virtual int BackFaceAt(PointF point)
Gets the index of the back face a point asks for. The default tile has a single back face.
inherited fromTile
point (PointF)

Click

#
public override void Click(Canvas canvas, DocumentBag bag, MouseEventArgs e)
canvas (Canvas)
bag (DocumentBag)
e (MouseEventArgs)
Tile.Click

CreateOpen

#
public static CommandTile CreateOpen()

CreateOpenSandBox

#
public static CommandTile CreateOpenSandBox()

CreateRestore

#
public static CommandTile CreateRestore()

Draw

public void Draw(Context context)
inherited fromTile
context (Context)

DrawFaceA

#
protected override void DrawFaceA(Graphics graphics, RectangleF frame, Color back, Color fore)
graphics (Graphics)
frame (RectangleF)
back (Color)
fore (Color)
Tile.DrawFaceA

DrawFaceB

#
protected override void DrawFaceB(Graphics graphics, RectangleF frame, Color back, Color fore)
graphics (Graphics)
frame (RectangleF)
back (Color)
fore (Color)
Tile.DrawFaceB

HasBackFace

protected virtual bool HasBackFace(int face)
Gets whether a back face has anything to show. A tile does not turn towards an empty face.
inherited fromTile
face (int)

ShowTooltip

#
public override void ShowTooltip(PointF point)
point (PointF)
Tile.ShowTooltip