Свойство | Тип | Описание | |
---|---|---|---|
maxEntries | int | ||
maxShortenPathLength | int | ||
mruStripMutex | |||
numEntries | int | ||
recentFileMenuItem | |||
registryKeyName | string |
Метод | Описание | |
---|---|---|
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.) |
Метод | Описание | |
---|---|---|
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 | |
Результат | void |
public AddFiles ( string filenames ) : void | ||
filenames | string | |
Результат | void |
public FindFilenameMenuIndex ( string filename ) : int | ||
filename | string | The filename to search for. |
Результат | int |
public FindFilenameNumber ( string filename ) : int | ||
filename | string | The filename to search for. |
Результат | int |
public static FixupEntryname ( int number, string entryname ) : string | ||
number | int | |
entryname | string | |
Результат | string |
protected FixupPrefixes ( int startNumber ) : void | ||
startNumber | int | |
Результат | void |
public GetFilesFullEntrystring ( ) : string[] | ||
Результат | string[] |
public GetMenuIndex ( int number ) : int | ||
number | int | The MRU item number. |
Результат | int |
protected Init ( |
||
recentFileMenuItem | ||
clickedHandler | ClickedHandler | |
registryKeyName | string | |
loadFromRegistry | bool | |
maxEntries | int | |
Результат | void |
public LoadFromRegistry ( string keyName ) : void | ||
keyName | string | |
Результат | void |
public MruStripMenu ( |
||
recentFileMenuItem | ||
clickedHandler | ClickedHandler | |
Результат | System |
public MruStripMenu ( |
||
recentFileMenuItem | ||
clickedHandler | ClickedHandler | |
maxEntries | int | |
Результат | System |
public MruStripMenu ( |
||
recentFileMenuItem | ||
clickedHandler | ClickedHandler | |
registryKeyName | string | |
Результат | System |
public MruStripMenu ( |
||
recentFileMenuItem | ||
clickedHandler | ClickedHandler | |
registryKeyName | string | |
loadFromRegistry | bool | |
Результат | System |
public MruStripMenu ( |
||
recentFileMenuItem | ||
clickedHandler | ClickedHandler | |
registryKeyName | string | |
loadFromRegistry | bool | |
maxEntries | int | |
Результат | System |
public MruStripMenu ( |
||
recentFileMenuItem | ||
clickedHandler | ClickedHandler | |
registryKeyName | string | |
maxEntries | int | |
Результат | System |
protected OnClick ( object sender, System e ) : void | ||
sender | object | |
e | System | |
Результат | void |
public RemoveFile ( string filename ) : void | ||
filename | string | |
Результат | void |
public RenameFile ( string oldFilename, string newFilename ) : void | ||
oldFilename | string | |
newFilename | string | |
Результат | void |
public RenameFile ( string oldFilename, string newFilename, string newEntryname ) : void | ||
oldFilename | string | |
newFilename | string | |
newEntryname | string | |
Результат | void |
public SaveToRegistry ( string keyName ) : void | ||
keyName | string | |
Результат | void |
public SetFiles ( string filenames ) : void | ||
filenames | string | |
Результат | void |
protected SetFirstFile ( MruMenuItem menuItem ) : void | ||
menuItem | MruMenuItem | |
Результат | void |
static public ShortenPathname ( string pathname, int maxLength ) : string | ||
pathname | string | |
maxLength | int | |
Результат | string |
protected Mutex,System.Threading mruStripMutex | ||
Результат |
protected ToolStripMenuItem,System.Windows.Forms recentFileMenuItem | ||
Результат |