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=4.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.StringassemblyFullNameFully assembly qualified name: System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Windows.Formsstatic java.lang.StringclassNameQualified class name: System.Windows.Forms.MenuStripstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMenuActivate(EventHandler handler)voidaddMenuDeactivate(EventHandler handler)static MenuStripcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoMenuStrip, a cast assert is made to check if types are compatible.booleangetCanOverflow()ToolStripGripStylegetGripStyle()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeToolStripMenuItemgetMdiWindowListItem()booleangetShowItemToolTips()booleangetStretch()voidremoveMenuActivate(EventHandler handler)voidremoveMenuDeactivate(EventHandler handler)voidsetCanOverflow(boolean CanOverflow)voidsetGripStyle(ToolStripGripStyle GripStyle)voidsetJCOInstance(JCObject instance)voidsetMdiWindowListItem(ToolStripMenuItem MdiWindowListItem)voidsetShowItemToolTips(boolean ShowItemToolTips)voidsetStretch(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, 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, setAllowItemReorder, setAllowMerge, setAutoScrollMargin, SetAutoScrollMarginNewToolStrip, setAutoScrollMinSize, setAutoScrollPosition, setBackColor, setCausesValidation, setDefaultDropDownDirection, setForeColor, setGripMargin, setImageList, setImageScalingSize, setLayoutSettings, setLayoutStyle, 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, addContextMenuChanged, addContextMenuStripChanged, 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, BringToFront, Contains, CreateControl, CreateGraphics, 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, getContextMenu, getContextMenuStrip, getCreated, getCursor, getDataBindings, getDefaultBackColor, getDefaultFont, getDefaultForeColor, getDeviceDpi, getDisplayRectangle, getDisposing, getDock, getEnabled, getFocused, getFont, getHeight, getImeMode, getInvokeRequired, getIsAccessible, 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, IsKeyLocked, IsMnemonic, LogicalToDeviceUnits, LogicalToDeviceUnits, PerformLayout, PerformLayout, PointToClient, PointToScreen, PreProcessControlMessage, PreProcessMessage, RectangleToClient, RectangleToScreen, Refresh, removeBackColorChanged, removeBackgroundImageChanged, removeBackgroundImageLayoutChanged, removeBindingContextChanged, removeChangeUICues, removeClick, removeClientSizeChanged, removeContextMenuChanged, removeContextMenuStripChanged, 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, setContextMenu, setContextMenuStrip, setCursor, 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
CreateObjRef, 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=4.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.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
MenuStrip
public MenuStrip() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, ConfigurationErrorsException, NotSupportedException, Win32Exception, ObjectDisposedException, OutOfMemoryException, SecurityException, InvalidEnumArgumentException, IndexOutOfRangeException, NullReferenceException, ThreadStateException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionMissingManifestResourceExceptionConfigurationErrorsExceptionNotSupportedExceptionWin32ExceptionObjectDisposedExceptionOutOfMemoryExceptionSecurityExceptionInvalidEnumArgumentExceptionIndexOutOfRangeExceptionNullReferenceExceptionThreadStateException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIDropTarget- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classToolStrip- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIDropTarget- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classToolStrip- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIDropTarget- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classToolStrip- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIDropTarget- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classToolStrip- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classToolStrip
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIDropTarget- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classToolStrip- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static MenuStrip cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoMenuStrip, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
MenuStripinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
getCanOverflow
public boolean getCanOverflow() throws java.lang.Throwable- Overrides:
getCanOverflowin classToolStrip- Throws:
java.lang.Throwable
-
setCanOverflow
public void setCanOverflow(boolean CanOverflow) throws java.lang.Throwable- Overrides:
setCanOverflowin classToolStrip- Throws:
java.lang.Throwable
-
getShowItemToolTips
public boolean getShowItemToolTips() throws java.lang.Throwable- Overrides:
getShowItemToolTipsin classToolStrip- Throws:
java.lang.Throwable
-
setShowItemToolTips
public void setShowItemToolTips(boolean ShowItemToolTips) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, SecurityException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, Win32Exception, NotSupportedException, NullReferenceException, OutOfMemoryException, InvalidEnumArgumentException, ThreadStateException- Overrides:
setShowItemToolTipsin classToolStrip- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionSecurityExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionWin32ExceptionNotSupportedExceptionNullReferenceExceptionOutOfMemoryExceptionInvalidEnumArgumentExceptionThreadStateException
-
getStretch
public boolean getStretch() throws java.lang.Throwable- Overrides:
getStretchin classToolStrip- Throws:
java.lang.Throwable
-
setStretch
public void setStretch(boolean Stretch) throws java.lang.Throwable- Overrides:
setStretchin classToolStrip- Throws:
java.lang.Throwable
-
getGripStyle
public ToolStripGripStyle getGripStyle() throws java.lang.Throwable
- Overrides:
getGripStylein classToolStrip- Throws:
java.lang.Throwable
-
setGripStyle
public void setGripStyle(ToolStripGripStyle GripStyle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, FormatException, InvalidEnumArgumentException, ConfigurationErrorsException, NotSupportedException, Win32Exception
- Overrides:
setGripStylein classToolStrip- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionInvalidEnumArgumentExceptionConfigurationErrorsExceptionNotSupportedExceptionWin32Exception
-
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
-
-