Click or drag to resize

BackgroundContextMenu Class

This class provides most of the default background context menu functionality from the windows explorer.
Inheritance Hierarchy

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Winforms (in ShellBrowser.Winforms.dll) Version: 6.3.1
Syntax
public class BackgroundContextMenu : ContextMenuStrip

The BackgroundContextMenu type exposes the following members.

Constructors
  NameDescription
Public methodBackgroundContextMenu
Initializes a new instance of the BackgroundContextMenu class.
Top
Properties
  NameDescription
Public propertyActualize
The ToolStripItem 'refresh'
Public propertyArrangeIcons
Returns the dynamic collection of ToolStripItems for the sortable columns.
Public propertyArrangeIconsString
The localizable string of the sort entry in the menu. Unfortunately we cannot provide a windows shell default string for this.
Public propertyInsert
Contains the ToolStripItem 'paste'
Public propertyInsertAsLink
The toolstrip item to insert a link to file(s) on the the clipboard, this functionality is not yet available, hence the items is not added to the background context menu per default.
Public propertyListView
Gets or sets the listview this context menu is associated with
Protected propertyNewFileFolder
The drop down menu item containing the new NewFolder item.
Protected propertyNewFolder
The menu item to create a new folder in the current directory
Protected propertyNewShortcut
The menu item to create a new shortcut in the current directory
Protected propertyProperties
Returns the "Properties" toolstrip menu item
Public propertyView
Returns the collection ToolStripItems for different view modes.
Top
Methods
  NameDescription
Public methodStatic memberCheckFileName
Check if given filename already exists in given path. If true, tries adding a (1), (2), (3) or (4). If they exist too, it returns an empty string.
Protected methodDispose
Releases the unmanaged resources used by the ContextMenuStrip and optionally releases the managed resources.
(Overrides ContextMenuStripDispose(Boolean).)
Protected methodOnOpening
Raises the Opening event.
(Overrides ToolStripDropDownOnOpening(CancelEventArgs).)
Protected methodSetupMenuItems
Sets up the menu items.
Public methodStatic memberStartProcess
Run a command with the given arguments
Top
Fields
  NameDescription
Protected fieldStatic memberc_ViewBig
constant to distinguish between menu items - big view
Protected fieldStatic memberc_ViewDetails
constant to distinguish between menu items - details view
Protected fieldStatic memberc_ViewList
constant to distinguish between menu items - list view
Protected fieldStatic memberc_ViewSmall
constant to distinguish between menu items - small view
Protected fieldStatic memberc_ViewThumbnail
constant to distinguish between menu items - Thumbnail view
Protected fieldStatic memberc_ViewTile
constant to distinguish between menu items - tile view
Top
Extension Methods
  NameDescription
Public Extension MethodHandleNeeded
A Control extension method that ensures that the handle for a control is created.
(Defined by ExtensionMethods.)
Public Extension MethodScaledPixels
An extension method for controls: It scales the passed pixels according to the current dpi the control is displayed with.
(Defined by ExtensionMethods.)
Public Extension MethodScaleFont
A Control extension method that scales font according to the passed factor.
(Defined by ExtensionMethods.)
Top
See Also