public sealed class FileTile : Tile
A tile on the canvas used for most-recent file access.

Properties

AutoSavePath

#
Gets the path to the autosave file location.
public string AutoSavePath { get; }

BackFace

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

Bounds

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

Colour

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

CompareFiles

#
public RectangleF CompareFiles { get; }

Date

#
Gets the date when the file was last modified.
public DateTime Date { get; }

HasAutoSave

#
Gets whether there's an autosave file available, indicating Grasshopper crashed the last time this file was open.
public bool HasAutoSave { get; }

Kind

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

OpenAutoSaveFile

#
public RectangleF OpenAutoSaveFile { get; }

OpenNormalFile

#
public RectangleF OpenNormalFile { get; }

Path

#
Gets the full path to the file.
public string Path { get; }

RotationAngle

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

Thumb

#
Canvas thumbnail image stored in file. This is retrieved lazily and may be null.
public Bitmap Thumb { get; }

Viewport

#
Viewport thumbnail image stored in file. This is retrieved lazily and may be null.
public Bitmap Viewport { get; }

Methods

BackFaceAt

#
protected override int BackFaceAt(
PointF
point
)
Tile.BackFaceAt

Click

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

CreateRecent

#
public static FileTile CreateRecent(
path
)

CreateTutorial

#
public static FileTile CreateTutorial(
path
)

Draw

public void Draw(
context
)
inherited fromTile

DrawFaceA

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

DrawFaceB

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

HasBackFace

#
protected override bool HasBackFace(
face
)
Tile.HasBackFace

ShowTooltip

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