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;} |
Managed Extensions for C++ | |
---|
public: __property ContextMenu get_RubberStampButtonDropDownContextMenu();
public: __property void set_RubberStampButtonDropDownContextMenu(
ContextMenu value
); |
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 |
---|
Public Sub AnnAutomationManager_RubberStampButtonDropDownContextMenu(ByVal manager As AnnAutomationManager)
For Each item As MenuItem In manager.RubberStampButtonDropDownContextMenu.MenuItems
If String.Compare(item.Text, "Void", False) = 0 Then
item.Enabled = False
End If
Next item
End Sub |
C# | Copy Code |
---|
public void AnnAutomationManager_RubberStampButtonDropDownContextMenu(AnnAutomationManager manager) { foreach (MenuItem item in manager.RubberStampButtonDropDownContextMenu.MenuItems) { if (string.Compare(item.Text, "Void", false) == 0) item.Enabled = false; } } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also