LEADTOOLS Annotations (Leadtools.Annotations assembly)

RubberStampButtonDropDownContextMenu Property

Show in webframe
Example 





Gets or sets the context menu for the rubber stamp toolbar button of this AnnAutomationManager.
Syntax
public ContextMenu RubberStampButtonDropDownContextMenu {get; set;}
'Declaration
 
Public Property RubberStampButtonDropDownContextMenu As ContextMenu
'Usage
 
Dim instance As AnnAutomationManager
Dim value As ContextMenu
 
instance.RubberStampButtonDropDownContextMenu = value
 
value = instance.RubberStampButtonDropDownContextMenu

            

            
public:
property ContextMenu^ RubberStampButtonDropDownContextMenu {
   ContextMenu^ get();
   void set (    ContextMenu^ value);
}

Property Value

The context menu for the rubber stamp toolbar button of this AnnAutomationManager.
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 System.Windows.Forms.ContextMenu derived class if desired. For a list of available rubber stamp types, refer to the AnnRubberStampType enumeration.

Example
Copy Code  
Imports Leadtools
Imports Leadtools.Annotations
Imports Leadtools.WinForms
Imports Leadtools.Codecs

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
using Leadtools;
using Leadtools.Annotations;
using Leadtools.WinForms;
using Leadtools.Codecs;

public void AnnAutomationManager_RubberStampButtonDropDownContextMenu(AnnAutomationManager manager)
{
   foreach (MenuItem item in manager.RubberStampButtonDropDownContextMenu.MenuItems)
   {
      if (string.Compare(item.Text, "Void", false) == 0)
         item.Enabled = false;
   }
}
Requirements

Target Platforms

See Also

Reference

AnnAutomationManager Class
AnnAutomationManager Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.