'Declaration Public ReadOnly Property DefaultItems As GanttViewReadOnlyMenuItemsCollection
public GanttViewReadOnlyMenuItemsCollection DefaultItems {get;}
The collection returned by the DefaultItems collection stands independent of the MenuItems collection; the DefaultItems collection contains all items, regardless of whether they will appear on the context menu. Whether an item appears on the menu and whether it is enabled is determined by the control based on context-sensitive factors and the current state of the control.
The GanttViewContextMenuItem exposes Enabled and Visible properties, which can be set by the developer. These values are initialized for each item prior to displaying the context menu, based on context-sensitive factors and the current state of the control. Caution should be used when enabling or showing an item that is disabled or hidden by the control, since doing so can result in unexpected behavior.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2