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

Properties

AutoSavePath

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

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

CompareFiles

#
public RectangleF CompareFiles { get; }

Date

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

HasAutoSave

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

Kind

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

OpenAutoSaveFile

#
public RectangleF OpenAutoSaveFile { get; }

OpenNormalFile

#
public RectangleF OpenNormalFile { get; }

Path

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

RotationAngle

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

Thumb

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

Viewport

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

Methods

BackFaceAt

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

Click

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

CreateRecent

#
public static FileTile CreateRecent(string path)
path (string)

CreateTutorial

#
public static FileTile CreateTutorial(string path)
path (string)

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 override bool HasBackFace(int face)
face (int)
Tile.HasBackFace

ShowTooltip

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