프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 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 |
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 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 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 |
protected SetFirstFile ( MruMenuItem menuItem ) : void | ||
menuItem | MruMenuItem | |
리턴 | void |
static public ShortenPathname ( string pathname, int maxLength ) : string | ||
pathname | string | |
maxLength | int | |
리턴 | string |
protected ToolStripMenuItem,System.Windows.Forms recentFileMenuItem | ||
리턴 |