Package system.windows.forms
Class MenuStrip
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
,IDropTarget
public class MenuStrip extends ToolStrip
The base .NET class managing System.Windows.Forms.MenuStrip, System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Forms.MenuStrip
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: System.Windows.Formsstatic java.lang.String
className
Qualified class name: System.Windows.Forms.MenuStripstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMenuActivate(EventHandler handler)
void
addMenuDeactivate(EventHandler handler)
static MenuStrip
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoMenuStrip
, a cast assert is made to check if types are compatible.boolean
getCanOverflow()
ToolStripGripStyle
getGripStyle()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeToolStripMenuItem
getMdiWindowListItem()
boolean
getShowItemToolTips()
boolean
getStretch()
void
removeMenuActivate(EventHandler handler)
void
removeMenuDeactivate(EventHandler handler)
void
setCanOverflow(boolean CanOverflow)
void
setGripStyle(ToolStripGripStyle GripStyle)
void
setJCOInstance(JCObject instance)
void
setMdiWindowListItem(ToolStripMenuItem MdiWindowListItem)
void
setShowItemToolTips(boolean ShowItemToolTips)
void
setStretch(boolean Stretch)
-
Methods inherited from class system.windows.forms.ToolStrip
addAutoSizeChanged, addBeginDrag, addCausesValidationChanged, addControlAdded, addControlRemoved, addCursorChanged, addEndDrag, addForeColorChanged, addItemAdded, addItemClicked, addItemRemoved, addLayoutCompleted, addLayoutStyleChanged, addPaintGrip, addRendererChanged, getAllowClickThrough, getAllowItemReorder, getAllowMerge, getAutoScrollMargin, getAutoScrollMinSize, getAutoScrollPosition, getBackColor, getCausesValidation, GetChildAtPointNewToolStrip, GetChildAtPointNewToolStrip, getDefaultDropDownDirection, getForeColor, getGripDisplayStyle, getGripMargin, getGripRectangle, getHasChildren, getHorizontalScroll, getImageList, getImageScalingSize, getIsCurrentlyDragging, getIsDropDown, GetItemAt, GetItemAt, getItems, getLayoutSettings, getLayoutStyle, GetNextItem, getOrientation, getOverflowButton, getRenderer, getRenderMode, getTabStop, getTextDirection, getVerticalScroll, removeAutoSizeChanged, removeBeginDrag, removeCausesValidationChanged, removeControlAdded, removeControlRemoved, removeCursorChanged, removeEndDrag, removeForeColorChanged, removeItemAdded, removeItemClicked, removeItemRemoved, removeLayoutCompleted, removeLayoutStyleChanged, removePaintGrip, removeRendererChanged, ResetMinimumSizeNewToolStrip, setAllowClickThrough, setAllowItemReorder, setAllowMerge, setAutoScrollMargin, SetAutoScrollMarginNewToolStrip, setAutoScrollMinSize, setAutoScrollPosition, setBackColor, setCausesValidation, setDefaultDropDownDirection, setForeColor, setGripMargin, setImageList, setImageScalingSize, setLayoutSettings, setLayoutStyle, setOrientation, setRenderer, setRenderMode, setTabStop, setTextDirection
-
Methods inherited from class system.windows.forms.ScrollableControl
addScroll, getAutoScroll, removeScroll, ScrollControlIntoView, setAutoScroll, SetAutoScrollMargin
-
Methods inherited from class system.windows.forms.Control
addBackColorChanged, addBackgroundImageChanged, addBackgroundImageLayoutChanged, addBindingContextChanged, addChangeUICues, addClick, addClientSizeChanged, addContextMenuStripChanged, addDataContextChanged, addDockChanged, addDoubleClick, addDpiChangedAfterParent, addDpiChangedBeforeParent, addDragDrop, addDragEnter, addDragLeave, addDragOver, addEnabledChanged, addEnter, addFontChanged, addGiveFeedback, addGotFocus, addHandleCreated, addHandleDestroyed, addHelpRequested, addImeModeChanged, addInvalidated, addKeyDown, addKeyPress, addKeyUp, addLayout, addLeave, addLocationChanged, addLostFocus, addMarginChanged, addMouseCaptureChanged, addMouseClick, addMouseDoubleClick, addMouseDown, addMouseEnter, addMouseHover, addMouseLeave, addMouseMove, addMouseUp, addMouseWheel, addMove, addPaddingChanged, addPaint, addParentChanged, addPreviewKeyDown, addQueryAccessibilityHelp, addQueryContinueDrag, addRegionChanged, addResize, addRightToLeftChanged, addSizeChanged, addStyleChanged, addSystemColorsChanged, addTabIndexChanged, addTabStopChanged, addTextChanged, addValidated, addValidating, addVisibleChanged, BeginInvoke, BringToFront, Contains, CreateControl, CreateGraphics, DoDragDrop, DoDragDrop, DrawToBitmap, EndInvoke, FindForm, Focus, getAccessibilityObject, getAccessibleDefaultActionDescription, getAccessibleDescription, getAccessibleName, getAccessibleRole, getAllowDrop, getAnchor, getAutoScrollOffset, getAutoSize, getBackgroundImage, getBackgroundImageLayout, getBindingContext, getBottom, getBounds, getCanFocus, getCanSelect, getCapture, getCheckForIllegalCrossThreadCalls, GetChildAtPoint, GetChildAtPoint, getClientRectangle, getClientSize, getCompanyName, GetContainerControl, getContainsFocus, getContextMenuStrip, getCreated, getCursor, getDataBindings, getDataContext, getDefaultBackColor, getDefaultFont, getDefaultForeColor, getDeviceDpi, getDisplayRectangle, getDisposing, getDock, getEnabled, getFocused, getFont, getHeight, getImeMode, getInvokeRequired, getIsAccessible, getIsAncestorSiteInDesignMode, getIsDisposed, getIsHandleCreated, getIsMirrored, getLayoutEngine, getLeft, getLocation, getMargin, getMaximumSize, getMinimumSize, getModifierKeys, getMouseButtons, getMousePosition, getName, GetNextControl, getPadding, getParent, getPreferredSize, GetPreferredSize, getProductName, getProductVersion, getRecreatingHandle, getRegion, getRight, getRightToLeft, getSize, getTabIndex, getTag, getText, getTop, getTopLevelControl, getUseWaitCursor, getVisible, getWidth, getWindowTarget, Hide, Invalidate, Invalidate, Invalidate, Invalidate, Invalidate, Invalidate, Invoke, InvokeAsync, IsKeyLocked, IsMnemonic, LogicalToDeviceUnits, LogicalToDeviceUnits, PerformLayout, PerformLayout, PointToClient, PointToScreen, PreProcessControlMessage, PreProcessMessage, RectangleToClient, RectangleToScreen, Refresh, removeBackColorChanged, removeBackgroundImageChanged, removeBackgroundImageLayoutChanged, removeBindingContextChanged, removeChangeUICues, removeClick, removeClientSizeChanged, removeContextMenuStripChanged, removeDataContextChanged, removeDockChanged, removeDoubleClick, removeDpiChangedAfterParent, removeDpiChangedBeforeParent, removeDragDrop, removeDragEnter, removeDragLeave, removeDragOver, removeEnabledChanged, removeEnter, removeFontChanged, removeGiveFeedback, removeGotFocus, removeHandleCreated, removeHandleDestroyed, removeHelpRequested, removeImeModeChanged, removeInvalidated, removeKeyDown, removeKeyPress, removeKeyUp, removeLayout, removeLeave, removeLocationChanged, removeLostFocus, removeMarginChanged, removeMouseCaptureChanged, removeMouseClick, removeMouseDoubleClick, removeMouseDown, removeMouseEnter, removeMouseHover, removeMouseLeave, removeMouseMove, removeMouseUp, removeMouseWheel, removeMove, removePaddingChanged, removePaint, removeParentChanged, removePreviewKeyDown, removeQueryAccessibilityHelp, removeQueryContinueDrag, removeRegionChanged, removeResize, removeRightToLeftChanged, removeSizeChanged, removeStyleChanged, removeSystemColorsChanged, removeTabIndexChanged, removeTabStopChanged, removeTextChanged, removeValidated, removeValidating, removeVisibleChanged, ResetBackColor, ResetBindings, ResetCursor, ResetFont, ResetForeColor, ResetImeMode, ResetRightToLeft, ResetText, ResumeLayout, ResumeLayout, Scale, Scale, Scale, ScaleBitmapLogicalToDevice, Select, SelectNextControl, SendToBack, setAccessibleDefaultActionDescription, setAccessibleDescription, setAccessibleName, setAccessibleRole, setAllowDrop, setAnchor, setAutoScrollOffset, setAutoSize, setBackgroundImage, setBackgroundImageLayout, setBindingContext, setBounds, SetBounds, SetBounds, setCapture, setCheckForIllegalCrossThreadCalls, setClientSize, setContextMenuStrip, setCursor, setDataContext, setDock, setEnabled, setFont, setHeight, setImeMode, setIsAccessible, setLeft, setLocation, setMargin, setMaximumSize, setMinimumSize, setName, setPadding, setParent, setRegion, setRightToLeft, setSize, setTabIndex, setTag, setText, setTop, setUseWaitCursor, setVisible, setWidth, setWindowTarget, Show, SuspendLayout, Update
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.windows.forms.IDropTarget
OnDragDrop, OnDragEnter, OnDragLeave, OnDragOver
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Windows.Forms- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Forms.MenuStrip- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MenuStrip
public MenuStrip(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
MenuStrip
public MenuStrip() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, Win32Exception, InvalidOperationException, OutOfMemoryException, ArgumentNullException, RankException, ArrayTypeMismatchException, InvalidCastException, LockRecursionException, AbandonedMutexException, SynchronizationLockException, InvalidEnumArgumentException, ThreadStateException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
FormatException
Win32Exception
InvalidOperationException
OutOfMemoryException
ArgumentNullException
RankException
ArrayTypeMismatchException
InvalidCastException
LockRecursionException
AbandonedMutexException
SynchronizationLockException
InvalidEnumArgumentException
ThreadStateException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIDropTarget
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classToolStrip
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIDropTarget
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classToolStrip
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIDropTarget
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classToolStrip
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIDropTarget
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classToolStrip
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classToolStrip
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIDropTarget
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classToolStrip
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static MenuStrip cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoMenuStrip
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
MenuStrip
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
getCanOverflow
public boolean getCanOverflow() throws java.lang.Throwable
- Overrides:
getCanOverflow
in classToolStrip
- Throws:
java.lang.Throwable
-
setCanOverflow
public void setCanOverflow(boolean CanOverflow) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, RankException, IndexOutOfRangeException, ArgumentException, ArrayTypeMismatchException
- Overrides:
setCanOverflow
in classToolStrip
- Throws:
java.lang.Throwable
PlatformNotSupportedException
ArgumentNullException
RankException
IndexOutOfRangeException
ArgumentException
ArrayTypeMismatchException
-
getShowItemToolTips
public boolean getShowItemToolTips() throws java.lang.Throwable
- Overrides:
getShowItemToolTips
in classToolStrip
- Throws:
java.lang.Throwable
-
setShowItemToolTips
public void setShowItemToolTips(boolean ShowItemToolTips) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidCastException, Win32Exception, OutOfMemoryException, InvalidOperationException, NotSupportedException, InvalidEnumArgumentException, ThreadStateException, OverflowException
- Overrides:
setShowItemToolTips
in classToolStrip
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
ArgumentNullException
PlatformNotSupportedException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidCastException
Win32Exception
OutOfMemoryException
InvalidOperationException
NotSupportedException
InvalidEnumArgumentException
ThreadStateException
OverflowException
-
getStretch
public boolean getStretch() throws java.lang.Throwable
- Overrides:
getStretch
in classToolStrip
- Throws:
java.lang.Throwable
-
setStretch
public void setStretch(boolean Stretch) throws java.lang.Throwable
- Overrides:
setStretch
in classToolStrip
- Throws:
java.lang.Throwable
-
getGripStyle
public ToolStripGripStyle getGripStyle() throws java.lang.Throwable
- Overrides:
getGripStyle
in classToolStrip
- Throws:
java.lang.Throwable
-
setGripStyle
public void setGripStyle(ToolStripGripStyle GripStyle) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, ArgumentNullException, SynchronizationLockException, KeyNotFoundException, InvalidOperationException, Win32Exception
- Overrides:
setGripStyle
in classToolStrip
- Throws:
java.lang.Throwable
ArgumentException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
FormatException
InvalidEnumArgumentException
ArgumentNullException
SynchronizationLockException
KeyNotFoundException
InvalidOperationException
Win32Exception
-
getMdiWindowListItem
public ToolStripMenuItem getMdiWindowListItem() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setMdiWindowListItem
public void setMdiWindowListItem(ToolStripMenuItem MdiWindowListItem) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addMenuActivate
public void addMenuActivate(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeMenuActivate
public void removeMenuActivate(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addMenuDeactivate
public void addMenuDeactivate(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeMenuDeactivate
public void removeMenuDeactivate(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-