Свойство | Type | Description | |
---|---|---|---|
maxEntries | int | ||
maxShortenPathLength | int | ||
mruStripMutex | |||
numEntries | int | ||
recentFileMenuItem | |||
registryKeyName | string |
Méthode | Description | |
---|---|---|
AddFile ( string filename ) : void | ||
AddFile ( string filename, string entryname ) : void | ||
AddFiles ( string filenames ) : void | ||
FindFilenameMenuIndex ( string filename ) : int |
Returns the menu index of the passed filename.
|
|
FindFilenameNumber ( string filename ) : int |
Returns the entry number matching the passed filename.
|
|
FixupEntryname ( int number, string entryname ) : string | ||
GetFileAt ( int number ) : string | ||
GetFiles ( ) : string[] | ||
GetFilesFullEntrystring ( ) : string[] | ||
GetMenuIndex ( int number ) : int |
Returns the menu index for a specified MRU item number.
|
|
LoadFromRegistry ( ) : void | ||
LoadFromRegistry ( string keyName ) : void | ||
MruStripMenu ( |
Initializes a new instance of the MruMenu class.
|
|
MruStripMenu ( |
Initializes a new instance of the MruMenu class.
|
|
MruStripMenu ( |
Initializes a new instance of the MruMenu class.
|
|
MruStripMenu ( |
Initializes a new instance of the MruMenu class.
|
|
MruStripMenu ( |
Initializes a new instance of the MruMenu class.
|
|
MruStripMenu ( |
Initializes a new instance of the MruMenu class.
|
|
RemoveAll ( ) : void | ||
RemoveFile ( int number ) : void | ||
RemoveFile ( string filename ) : void | ||
RenameFile ( string oldFilename, string newFilename ) : void | ||
RenameFile ( string oldFilename, string newFilename, string newEntryname ) : void | ||
SaveToRegistry ( ) : void | ||
SaveToRegistry ( string keyName ) : void | ||
SetFiles ( string filenames ) : void | ||
SetFirstFile ( int number ) : void | ||
ShortenPathname ( string pathname, int maxLength ) : string |
Shortens a pathname for display purposes. Shortens a pathname by either removing consecutive components of a path and/or by removing characters from the end of the filename and replacing then with three elipses (...) In all cases, the root of the passed path will be preserved in it's entirety. If a UNC path is used or the pathname and maxLength are particularly short, the resulting path may be longer than maxLength. This method expects fully resolved pathnames to be passed to it. (Use Path.GetFullPath() to obtain this.) |
Méthode | Description | |
---|---|---|
Disable ( ) : void | ||
Enable ( ) : void | ||
FixupPrefixes ( int startNumber ) : void | ||
Init ( |
||
MruStripMenu ( ) : System | ||
OnClick ( object sender, System e ) : void | ||
SetFirstFile ( MruMenuItem menuItem ) : void |
public AddFile ( string filename, string entryname ) : void | ||
filename | string | |
entryname | string | |
Résultat | void |
public AddFiles ( string filenames ) : void | ||
filenames | string | |
Résultat | void |
public FindFilenameMenuIndex ( string filename ) : int | ||
filename | string | The filename to search for. |
Résultat | int |
public FindFilenameNumber ( string filename ) : int | ||
filename | string | The filename to search for. |
Résultat | int |
public static FixupEntryname ( int number, string entryname ) : string | ||
number | int | |
entryname | string | |
Résultat | string |
protected FixupPrefixes ( int startNumber ) : void | ||
startNumber | int | |
Résultat | void |
public GetFilesFullEntrystring ( ) : string[] | ||
Résultat | string[] |
public GetMenuIndex ( int number ) : int | ||
number | int | The MRU item number. |
Résultat | int |
protected Init ( |
||
recentFileMenuItem | ||
clickedHandler | ClickedHandler | |
registryKeyName | string | |
loadFromRegistry | bool | |
maxEntries | int | |
Résultat | void |
public LoadFromRegistry ( string keyName ) : void | ||
keyName | string | |
Résultat | void |
public MruStripMenu ( |
||
recentFileMenuItem | ||
clickedHandler | ClickedHandler | |
Résultat | System |
public MruStripMenu ( |
||
recentFileMenuItem | ||
clickedHandler | ClickedHandler | |
maxEntries | int | |
Résultat | System |
public MruStripMenu ( |
||
recentFileMenuItem | ||
clickedHandler | ClickedHandler | |
registryKeyName | string | |
Résultat | System |
public MruStripMenu ( |
||
recentFileMenuItem | ||
clickedHandler | ClickedHandler | |
registryKeyName | string | |
loadFromRegistry | bool | |
Résultat | System |
public MruStripMenu ( |
||
recentFileMenuItem | ||
clickedHandler | ClickedHandler | |
registryKeyName | string | |
loadFromRegistry | bool | |
maxEntries | int | |
Résultat | System |
public MruStripMenu ( |
||
recentFileMenuItem | ||
clickedHandler | ClickedHandler | |
registryKeyName | string | |
maxEntries | int | |
Résultat | System |
protected OnClick ( object sender, System e ) : void | ||
sender | object | |
e | System | |
Résultat | void |
public RemoveFile ( string filename ) : void | ||
filename | string | |
Résultat | void |
public RenameFile ( string oldFilename, string newFilename ) : void | ||
oldFilename | string | |
newFilename | string | |
Résultat | void |
public RenameFile ( string oldFilename, string newFilename, string newEntryname ) : void | ||
oldFilename | string | |
newFilename | string | |
newEntryname | string | |
Résultat | void |
public SaveToRegistry ( string keyName ) : void | ||
keyName | string | |
Résultat | void |
public SetFiles ( string filenames ) : void | ||
filenames | string | |
Résultat | void |
protected SetFirstFile ( MruMenuItem menuItem ) : void | ||
menuItem | MruMenuItem | |
Résultat | void |
static public ShortenPathname ( string pathname, int maxLength ) : string | ||
pathname | string | |
maxLength | int | |
Résultat | string |
protected Mutex,System.Threading mruStripMutex | ||
Résultat |
protected ToolStripMenuItem,System.Windows.Forms recentFileMenuItem | ||
Résultat |