DiagramContextMenuBuildingEventArgs
StockSharp.Xaml.Diagram.Menus
Provides the context object and host menu contributions before a diagram menu opens.
継承元: EventArgs
コンストラクター
DiagramContextMenuBuildingEventArgs
public DiagramContextMenuBuildingEventArgs(DiagramContextKinds context, object target)
diagramContextMenuBuildingEventArgs = DiagramContextMenuBuildingEventArgs(context, target)
Initializes a new instance of the DiagramContextMenuBuildingEventArgs class.
- context
- Diagram context kind.
- target
- Object under the pointer.
プロパティ
Context
public DiagramContextKinds Context { get; }
value = diagramContextMenuBuildingEventArgs.Context
Gets the context kind.
Items
public IList<DiagramMenuItemDescriptor> Items { get; }
value = diagramContextMenuBuildingEventArgs.Items
Gets descriptors appended after the standard menu items.
Target
public object Target { get; }
value = diagramContextMenuBuildingEventArgs.Target
Gets the object under the pointer.