Gets or sets the context menu for the rubber stamp toolbar button of this AnnAutomationManager.
public ContextMenu RubberStampButtonDropDownContextMenu {get; set;}
Public Property RubberStampButtonDropDownContextMenu As ContextMenu
public:
property ContextMenu^ RubberStampButtonDropDownContextMenu {
ContextMenu^ get();
void set ( ContextMenu^ );
}
The context menu for the rubber stamp toolbar button of this AnnAutomationManager.
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 (Deprecated)) 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.
This example disables the "Void" rubber stamp type.
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;
}
}
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
Products |
Support |
Feedback: RubberStampButtonDropDownContextMenu Property - Leadtools.Annotations |
Introduction |
Help Version 19.0.2017.6.20
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.