Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
RubberStampButtonDropDownContextMenu Property
See Also  Example
Leadtools.Annotations Namespace > AnnAutomationManager Class : RubberStampButtonDropDownContextMenu Property



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;}
C++/CLI 
public:
property ContextMenu RubberStampButtonDropDownContextMenu {
   ContextMenu get();
   void set (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 BasicCopy 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

The ToolBar can create a button for the rubber stamp objects. This button by default has its style set to ToolBarButtonStyle.DropDownButton. The value of this property is the context menu used when this button is clicked.

You can directly manipulate (for more information, refer to Localization of LEADTOOLS for .NET Annotations Automation) this context menu or set your own ContextMenu derived class if desired. For a list of available rubber stamp types, refer to the AnnRubberStampType enumeration.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features