Gets or sets the context menu for the rubber stamp toolbar button of this
AnnAutomationManager.
Syntax
Visual Basic (Declaration) | |
---|
Public Property RubberStampButtonDropDownContextMenu As ContextMenu |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As AnnAutomationManager
Dim value As ContextMenu
instance.RubberStampButtonDropDownContextMenu = value
value = instance.RubberStampButtonDropDownContextMenu
|
C# | |
---|
public ContextMenu RubberStampButtonDropDownContextMenu {get; set;} |
XAML Property Element Usage | |
---|
<object>
<object.RubberStampButtonDropDownContextMenu>
<ContextMenu .../>
</object.RubberStampButtonDropDownContextMenu>
</object> |
XAML Property Element Usage | |
---|
<object>
<object.RubberStampButtonDropDownContextMenu>
<ContextMenu .../>
</object.RubberStampButtonDropDownContextMenu>
</object> |
Return Value
The context menu for the rubber stamp toolbar button of this
AnnAutomationManager.
Example
This example disables the "Void" rubber stamp type.
Visual Basic | Copy Code |
---|
Private Sub AnnAutomationManager_RubberStampButtonDropDownContextMenu(ByVal manager As AnnAutomationManager)
For Each item As MenuItem In manager.RubberStampButtonDropDownContextMenu.Items
If String.Compare(CStr(item.Header), "Void", False) = 0 Then
item.IsEnabled = False
End If
Next item
End Sub |
C# | Copy Code |
---|
private void AnnAutomationManager_RubberStampButtonDropDownContextMenu(AnnAutomationManager manager) { foreach(MenuItem item in manager.RubberStampButtonDropDownContextMenu.Items) { if(string.Compare((string)item.Header, "Void", false) == 0) item.IsEnabled = false; } } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family
See Also