LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)
LEAD Technologies, Inc

RubberStampButtonDropDownContextMenu Property

Example 





Gets or sets the context menu for the rubber stamp toolbar button of this AnnAutomationManager. .NET support
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 ContextMenu RubberStampButtonDropDownContextMenu {get; set;}
 get_RubberStampButtonDropDownContextMenu();
set_RubberStampButtonDropDownContextMenu(value);
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. The value of this property is the context menu used when this button is left or rightclicked.

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

Example
Copy CodeCopy 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
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;
   }
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnAutomationManager Class
AnnAutomationManager Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.