public class ToolStripMenuItem extends ToolStripDropDownItem
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Windows.Forms.ToolStripMenuItem
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: System.Windows.Forms
|
static java.lang.String |
className
Qualified class name: System.Windows.Forms.ToolStripMenuItem
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
ToolStripMenuItem()
Initializes a new instance by invoking the .NET constructor.
|
ToolStripMenuItem(Image image)
Initializes a new instance by invoking the .NET constructor.
|
ToolStripMenuItem(java.lang.Object instance)
Internal constructor.
|
ToolStripMenuItem(java.lang.String text)
Initializes a new instance by invoking the .NET constructor.
|
ToolStripMenuItem(java.lang.String text,
Image image)
Initializes a new instance by invoking the .NET constructor.
|
ToolStripMenuItem(java.lang.String text,
Image image,
EventHandler onClick)
Initializes a new instance by invoking the .NET constructor.
|
ToolStripMenuItem(java.lang.String text,
Image image,
EventHandler onClick,
Keys shortcutKeys)
Initializes a new instance by invoking the .NET constructor.
|
ToolStripMenuItem(java.lang.String text,
Image image,
EventHandler onClick,
java.lang.String name)
Initializes a new instance by invoking the .NET constructor.
|
ToolStripMenuItem(java.lang.String text,
Image image,
ToolStripItem... dropDownItems)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCheckedChanged(EventHandler handler)
Invokes the .NET member addCheckedChanged.
|
void |
addCheckStateChanged(EventHandler handler)
Invokes the .NET member addCheckStateChanged.
|
static ToolStripMenuItem |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into ToolStripMenuItem, a cast assert is made to check if types are compatible. |
boolean |
getChecked()
Gets the value of the .NET property Checked.
|
boolean |
getCheckOnClick()
Gets the value of the .NET property CheckOnClick.
|
CheckState |
getCheckState()
Gets the value of the .NET property CheckState.
|
boolean |
getIsMdiWindowListEntry()
Gets the value of the .NET property IsMdiWindowListEntry.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
ToolStripItemOverflow |
getOverflow()
Gets the value of the .NET property Overflow.
|
java.lang.String |
getShortcutKeyDisplayString()
Gets the value of the .NET property ShortcutKeyDisplayString.
|
Keys |
getShortcutKeys()
Gets the value of the .NET property ShortcutKeys.
|
boolean |
getShowShortcutKeys()
Gets the value of the .NET property ShowShortcutKeys.
|
void |
removeCheckedChanged(EventHandler handler)
Invokes the .NET member removeCheckedChanged.
|
void |
removeCheckStateChanged(EventHandler handler)
Invokes the .NET member removeCheckStateChanged.
|
void |
setChecked(boolean Checked)
Sets the value of the .NET property Checked.
|
void |
setCheckOnClick(boolean CheckOnClick)
Sets the value of the .NET property CheckOnClick.
|
void |
setCheckState(CheckState CheckState)
Sets the value of the .NET property CheckState.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setOverflow(ToolStripItemOverflow Overflow)
Sets the value of the .NET property Overflow.
|
void |
setShortcutKeyDisplayString(java.lang.String ShortcutKeyDisplayString)
Sets the value of the .NET property ShortcutKeyDisplayString.
|
void |
setShortcutKeys(Keys ShortcutKeys)
Sets the value of the .NET property ShortcutKeys.
|
void |
setShowShortcutKeys(boolean ShowShortcutKeys)
Sets the value of the .NET property ShowShortcutKeys.
|
addDropDownClosed, addDropDownItemClicked, addDropDownOpened, addDropDownOpening, getDropDown, getDropDownDirection, getDropDownItems, getHasDropDown, getHasDropDownItems, HideDropDown, removeDropDownClosed, removeDropDownItemClicked, removeDropDownOpened, removeDropDownOpening, setDropDown, setDropDownDirection, ShowDropDownaddAvailableChanged, addBackColorChanged, addClick, addCommandCanExecuteChanged, addCommandChanged, addCommandParameterChanged, addDisplayStyleChanged, addDoubleClick, addDragDrop, addDragEnter, addDragLeave, addDragOver, addEnabledChanged, addForeColorChanged, addGiveFeedback, addLocationChanged, addMouseDown, addMouseEnter, addMouseHover, addMouseLeave, addMouseMove, addMouseUp, addOwnerChanged, addPaint, addQueryAccessibilityHelp, addQueryContinueDrag, addRightToLeftChanged, addTextChanged, addVisibleChanged, DoDragDrop, DoDragDrop, getAccessibilityObject, getAccessibleDefaultActionDescription, getAccessibleDescription, getAccessibleName, getAccessibleRole, getAlignment, getAllowDrop, getAnchor, getAutoSize, getAutoToolTip, getAvailable, getBackColor, getBackgroundImage, getBackgroundImageLayout, getBounds, getCanSelect, getCommand, getCommandParameter, getContentRectangle, GetCurrentParent, getDisplayStyle, getDock, getDoubleClickEnabled, getEnabled, getFont, getForeColor, getHeight, getImage, getImageAlign, getImageIndex, getImageKey, getImageScaling, getImageTransparentColor, getIsDisposed, getIsOnDropDown, getIsOnOverflow, getMargin, getMergeAction, getMergeIndex, getName, getOwner, getOwnerItem, getPadding, getPlacement, GetPreferredSize, getPressed, getRightToLeft, getRightToLeftAutoMirrorImage, getSelected, getSize, getTag, getText, getTextAlign, getTextDirection, getTextImageRelation, getToolTipText, getVisible, getWidth, Invalidate, Invalidate, PerformClick, removeAvailableChanged, removeBackColorChanged, removeClick, removeCommandCanExecuteChanged, removeCommandChanged, removeCommandParameterChanged, removeDisplayStyleChanged, removeDoubleClick, removeDragDrop, removeDragEnter, removeDragLeave, removeDragOver, removeEnabledChanged, removeForeColorChanged, removeGiveFeedback, removeLocationChanged, removeMouseDown, removeMouseEnter, removeMouseHover, removeMouseLeave, removeMouseMove, removeMouseUp, removeOwnerChanged, removePaint, removeQueryAccessibilityHelp, removeQueryContinueDrag, removeRightToLeftChanged, removeTextChanged, removeVisibleChanged, ResetBackColor, ResetDisplayStyle, ResetFont, ResetForeColor, ResetImage, ResetMargin, ResetPadding, ResetRightToLeft, ResetTextDirection, Select, setAccessibleDefaultActionDescription, setAccessibleDescription, setAccessibleName, setAccessibleRole, setAlignment, setAllowDrop, setAnchor, setAutoSize, setAutoToolTip, setAvailable, setBackColor, setBackgroundImage, setBackgroundImageLayout, setCommand, setCommandParameter, setDisplayStyle, setDock, setDoubleClickEnabled, setEnabled, setFont, setForeColor, setHeight, setImage, setImageAlign, setImageIndex, setImageKey, setImageScaling, setImageTransparentColor, setMargin, setMergeAction, setMergeIndex, setName, setOwner, setPadding, setRightToLeft, setRightToLeftAutoMirrorImage, setSize, setTag, setText, setTextAlign, setTextDirection, setTextImageRelation, setToolTipText, setVisible, setWidthaddBindingContextChanged, getBindingContext, getDataBindings, removeBindingContextChanged, setBindingContextaddDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSiteGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public ToolStripMenuItem()
throws java.lang.Throwable,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentException,
IndexOutOfRangeException,
RankException,
ArrayTypeMismatchException,
NotSupportedException,
InvalidEnumArgumentException,
ArgumentOutOfRangeException
java.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic ToolStripMenuItem(Image image) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidEnumArgumentException, ArgumentOutOfRangeException, InvalidOperationException, OverflowException, MulticastNotSupportedException
image - the argument of type Imagejava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOverflowException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itpublic ToolStripMenuItem(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic ToolStripMenuItem(java.lang.String text)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidEnumArgumentException,
ArgumentOutOfRangeException,
InvalidOperationException,
OverflowException,
MulticastNotSupportedException
text - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOverflowException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itpublic ToolStripMenuItem(java.lang.String text,
Image image)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidEnumArgumentException,
ArgumentOutOfRangeException,
InvalidOperationException,
OverflowException,
MulticastNotSupportedException
text - the argument of type java.lang.Stringimage - the argument of type Imagejava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOverflowException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itpublic ToolStripMenuItem(java.lang.String text,
Image image,
EventHandler onClick)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidEnumArgumentException,
ArgumentOutOfRangeException,
InvalidOperationException,
OverflowException,
MulticastNotSupportedException
text - the argument of type java.lang.Stringimage - the argument of type ImageonClick - the argument of type EventHandlerjava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOverflowException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itpublic ToolStripMenuItem(java.lang.String text,
Image image,
EventHandler onClick,
Keys shortcutKeys)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidEnumArgumentException,
ArgumentOutOfRangeException,
InvalidOperationException,
OverflowException,
MulticastNotSupportedException,
NotSupportedException,
Win32Exception
text - the argument of type java.lang.Stringimage - the argument of type ImageonClick - the argument of type EventHandlershortcutKeys - the argument of type Keysjava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOverflowException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itWin32Exception - if the .NET member raises itpublic ToolStripMenuItem(java.lang.String text,
Image image,
EventHandler onClick,
java.lang.String name)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
RankException,
ArrayTypeMismatchException,
NotSupportedException,
InvalidEnumArgumentException,
ArgumentOutOfRangeException,
InvalidOperationException,
OverflowException,
InvalidAsynchronousStateException,
MulticastNotSupportedException
text - the argument of type java.lang.Stringimage - the argument of type ImageonClick - the argument of type EventHandlername - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOverflowException - if the .NET member raises itInvalidAsynchronousStateException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itpublic ToolStripMenuItem(java.lang.String text,
Image image,
ToolStripItem... dropDownItems)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidEnumArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
MulticastNotSupportedException,
NotSupportedException
text - the argument of type java.lang.Stringimage - the argument of type ImagedropDownItems - the argument of type ToolStripItem...java.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic void addCheckedChanged(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addCheckStateChanged(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static ToolStripMenuItem cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into ToolStripMenuItem, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedToolStripMenuItem instancejava.lang.Throwable - in case of error during cast operationpublic boolean getChecked()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getCheckOnClick()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic CheckState getCheckState() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsMdiWindowListEntry()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ToolStripDropDownItempublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ToolStripDropDownItempublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ToolStripDropDownItemnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ToolStripDropDownItempublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class ToolStripDropDownItempublic ToolStripItemOverflow getOverflow() throws java.lang.Throwable
getOverflow in class ToolStripItemjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getShortcutKeyDisplayString()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Keys getShortcutKeys() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getShowShortcutKeys()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeCheckedChanged(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeCheckStateChanged(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setChecked(boolean Checked)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
FormatException,
InvalidEnumArgumentException,
NotSupportedException,
RankException,
IndexOutOfRangeException,
ArrayTypeMismatchException
Checked - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void setCheckOnClick(boolean CheckOnClick)
throws java.lang.Throwable
CheckOnClick - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setCheckState(CheckState CheckState) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, InvalidEnumArgumentException, RankException, ArrayTypeMismatchException
CheckState - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class ToolStripDropDownIteminstance - the new underlying objectpublic void setOverflow(ToolStripItemOverflow Overflow) throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException, InvalidEnumArgumentException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException
setOverflow in class ToolStripItemOverflow - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void setShortcutKeyDisplayString(java.lang.String ShortcutKeyDisplayString)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
Win32Exception
ShortcutKeyDisplayString - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itWin32Exception - if the .NET member raises itpublic void setShortcutKeys(Keys ShortcutKeys) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, InvalidOperationException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, RankException, OutOfMemoryException, Win32Exception, NotSupportedException
ShortcutKeys - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itRankException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itWin32Exception - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic void setShowShortcutKeys(boolean ShowShortcutKeys)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentNullException,
RankException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
ArgumentException,
ArrayTypeMismatchException,
InvalidOperationException,
Win32Exception,
NotSupportedException
ShowShortcutKeys - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itRankException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidOperationException - if the .NET member raises itWin32Exception - if the .NET member raises itNotSupportedException - if the .NET member raises it