C# Class WhereAmI2015.WhereAmI

Adornment class that draws a square box in the top right hand corner of the viewport
Afficher le fichier Open project: tanathos/WhereAmI2015

Méthodes publiques

Méthode Description
GetContainingProject ( string fileName ) : Project

Given a filename, retrieve the Project container

WhereAmI ( IWpfTextView view, IWhereAmISettings settings ) : System

Initializes a new instance of the WhereAmI class. Creates a square image and attaches an event handler to the layout changed event that adds the the square in the upper right-hand corner of the TextView via the adornment layer

onSizeChange ( ) : void

Private Methods

Méthode Description
GetFolderDiffs ( string filePath, string folderPath ) : string

Given 2 absolute paths, returns the difference in folder structure. (The first should be nested in the second)

Method Details

GetContainingProject() public static méthode

Given a filename, retrieve the Project container
public static GetContainingProject ( string fileName ) : Project
fileName string
Résultat Project

WhereAmI() public méthode

Initializes a new instance of the WhereAmI class. Creates a square image and attaches an event handler to the layout changed event that adds the the square in the upper right-hand corner of the TextView via the adornment layer
public WhereAmI ( IWpfTextView view, IWhereAmISettings settings ) : System
view IWpfTextView The upon which the adornment will be drawn
settings IWhereAmISettings The injected by the provider
Résultat System

onSizeChange() public méthode

public onSizeChange ( ) : void
Résultat void