public class ToolStripItemCollection extends ArrangedElementCollection
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Windows.Forms.ToolStripItemCollection
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=9.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.ToolStripItemCollection
|
static JCType |
classType
The type managed from JCOBridge.
|
Null| Constructor and Description |
|---|
ToolStripItemCollection() |
ToolStripItemCollection(java.lang.Object instance)
Internal constructor.
|
ToolStripItemCollection(ToolStrip owner,
ToolStripItem[] value)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ToolStripItem |
Add(Image image)
Invokes the .NET member Add.
|
ToolStripItem |
Add(java.lang.String text)
Invokes the .NET member Add.
|
ToolStripItem |
Add(java.lang.String text,
Image image)
Invokes the .NET member Add.
|
ToolStripItem |
Add(java.lang.String text,
Image image,
EventHandler onClick)
Invokes the .NET member Add.
|
int |
Add(ToolStripItem value)
Invokes the .NET member Add.
|
void |
AddRange(ToolStripItem... toolStripItems)
Invokes the .NET member AddRange.
|
void |
AddRange(ToolStripItemCollection toolStripItems)
Invokes the .NET member AddRange.
|
static ToolStripItemCollection |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into ToolStripItemCollection, a cast assert is made to check if types are compatible. |
void |
Clear()
Invokes the .NET member Clear.
|
boolean |
Contains(ToolStripItem value)
Invokes the .NET member Contains.
|
boolean |
ContainsKey(java.lang.String key)
Invokes the .NET member ContainsKey.
|
void |
CopyTo(ToolStripItem[] array,
int index)
Invokes the .NET member CopyTo.
|
ToolStripItem[] |
Find(java.lang.String key,
boolean searchAllChildren)
Invokes the .NET member Find.
|
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. |
int |
IndexOf(ToolStripItem value)
Invokes the .NET member IndexOf.
|
int |
IndexOfKey(java.lang.String key)
Invokes the .NET member IndexOfKey.
|
void |
Insert(int index,
ToolStripItem value)
Invokes the .NET member Insert.
|
void |
Remove(ToolStripItem value)
Invokes the .NET member Remove.
|
void |
RemoveAt(int index)
Invokes the .NET member RemoveAt.
|
void |
RemoveByKey(java.lang.String key)
Invokes the .NET member RemoveByKey.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
CopyTo, getCount, getIsReadOnlyGetEnumerator, iteratorEquals, Equals, GetHashCode, GetType, hashCode, toString, ToStringToIEnumerablepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public ToolStripItemCollection()
throws java.lang.Throwable
java.lang.Throwablepublic ToolStripItemCollection(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 ToolStripItemCollection(ToolStrip owner, ToolStripItem[] value) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, PlatformNotSupportedException, CultureNotFoundException, NotSupportedException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, MulticastNotSupportedException
owner - the argument of type ToolStripvalue - the argument of type ToolStripItem[]java.lang.Throwable - if the .NET constructor failsArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itCultureNotFoundException - 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 itInvalidOperationException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itpublic ToolStripItem Add(Image image) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ArgumentException, LockRecursionException, SynchronizationLockException, InvalidEnumArgumentException, ArgumentOutOfRangeException, MulticastNotSupportedException, InvalidOperationException
image - the argument of type Imagejava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itLockRecursionException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic ToolStripItem Add(java.lang.String text) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ArgumentException, LockRecursionException, SynchronizationLockException, InvalidEnumArgumentException, ArgumentOutOfRangeException, MulticastNotSupportedException, InvalidOperationException
text - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itLockRecursionException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic ToolStripItem Add(java.lang.String text, Image image) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ArgumentException, LockRecursionException, SynchronizationLockException, InvalidEnumArgumentException, ArgumentOutOfRangeException, MulticastNotSupportedException, InvalidOperationException
text - the argument of type java.lang.Stringimage - the argument of type Imagejava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itLockRecursionException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic ToolStripItem Add(java.lang.String text, Image image, EventHandler onClick) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ArgumentException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, LockRecursionException, AbandonedMutexException, SynchronizationLockException, InvalidEnumArgumentException, InvalidOperationException, ArgumentOutOfRangeException, MulticastNotSupportedException, ThreadStateException, Win32Exception
text - the argument of type java.lang.Stringimage - the argument of type ImageonClick - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - 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 itLockRecursionException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itThreadStateException - if the .NET member raises itWin32Exception - if the .NET member raises itpublic int Add(ToolStripItem value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, SynchronizationLockException, MulticastNotSupportedException, ThreadStateException, Win32Exception
value - the argument of type ToolStripItemjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itThreadStateException - if the .NET member raises itWin32Exception - if the .NET member raises itpublic void AddRange(ToolStripItem... toolStripItems) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MulticastNotSupportedException, ThreadStateException, Win32Exception
toolStripItems - the argument of type ToolStripItem...java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itThreadStateException - if the .NET member raises itWin32Exception - if the .NET member raises itpublic void AddRange(ToolStripItemCollection toolStripItems) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MulticastNotSupportedException, ThreadStateException, Win32Exception
toolStripItems - the argument of type ToolStripItemCollectionjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itThreadStateException - if the .NET member raises itWin32Exception - if the .NET member raises itpublic static ToolStripItemCollection cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into ToolStripItemCollection, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedToolStripItemCollection instancejava.lang.Throwable - in case of error during cast operationpublic void Clear()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
Win32Exception,
RankException,
ArrayTypeMismatchException,
MulticastNotSupportedException,
IndexOutOfRangeException
Clear in class ArrangedElementCollectionjava.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 itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itWin32Exception - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic boolean Contains(ToolStripItem value) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException
value - the argument of type ToolStripItemjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic boolean ContainsKey(java.lang.String key)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
OutOfMemoryException,
ExternalException,
ArgumentNullException,
InvalidOperationException,
CultureNotFoundException,
ArgumentException
key - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArgumentException - if the .NET member raises itpublic void CopyTo(ToolStripItem[] array, int index) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, RankException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, ArrayTypeMismatchException, InvalidCastException
array - the argument of type ToolStripItem[]index - the argument of type intjava.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 itInvalidCastException - if the .NET member raises itpublic ToolStripItem[] Find(java.lang.String key, boolean searchAllChildren) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException, ExternalException, MulticastNotSupportedException
key - the argument of type java.lang.StringsearchAllChildren - the argument of type booleanjava.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 itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ArrangedElementCollectionpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ArrangedElementCollectionpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ArrangedElementCollectionnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ArrangedElementCollectionpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class ArrangedElementCollectionpublic int IndexOf(ToolStripItem value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException
value - the argument of type ToolStripItemjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic int IndexOfKey(java.lang.String key)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
CultureNotFoundException,
PlatformNotSupportedException,
NullReferenceException,
OutOfMemoryException,
ExternalException,
ArgumentNullException,
InvalidOperationException
key - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void Insert(int index,
ToolStripItem value)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
SynchronizationLockException,
MulticastNotSupportedException,
ThreadStateException,
Win32Exception
index - the argument of type intvalue - the argument of type ToolStripItemjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itThreadStateException - if the .NET member raises itWin32Exception - if the .NET member raises itpublic void Remove(ToolStripItem value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidCastException, LockRecursionException, AbandonedMutexException, SynchronizationLockException, MulticastNotSupportedException, ThreadStateException, OverflowException, Win32Exception, InvalidEnumArgumentException
value - the argument of type ToolStripItemjava.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 itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidCastException - if the .NET member raises itLockRecursionException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itThreadStateException - if the .NET member raises itOverflowException - if the .NET member raises itWin32Exception - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itpublic void RemoveAt(int index)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
RankException,
ArrayTypeMismatchException,
InvalidCastException,
LockRecursionException,
AbandonedMutexException,
SynchronizationLockException,
MulticastNotSupportedException,
ThreadStateException,
OverflowException,
Win32Exception,
InvalidEnumArgumentException
RemoveAt in class ArrangedElementCollectionindex - the argument of type intjava.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 itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidCastException - if the .NET member raises itLockRecursionException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itThreadStateException - if the .NET member raises itOverflowException - if the .NET member raises itWin32Exception - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itpublic void RemoveByKey(java.lang.String key)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
OutOfMemoryException,
ExternalException,
IndexOutOfRangeException,
RankException,
ArrayTypeMismatchException,
InvalidCastException,
LockRecursionException,
SynchronizationLockException,
MulticastNotSupportedException,
ThreadStateException,
Win32Exception,
InvalidEnumArgumentException
key - the argument of type java.lang.Stringjava.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 itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidCastException - if the .NET member raises itLockRecursionException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itThreadStateException - if the .NET member raises itWin32Exception - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class ArrangedElementCollectioninstance - the new underlying object