Package system.windows.forms
Class ToolStripItemCollection
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- org.mases.jcobridge.netreflection.NetObjectEnumerable
-
- system.windows.forms.layout.ArrangedElementCollection
-
- system.windows.forms.ToolStripItemCollection
-
- All Implemented Interfaces:
java.lang.Iterable<NetObject>,IEnumerable,IJCOBridgeReflected
public class ToolStripItemCollection extends ArrangedElementCollection
The base .NET class managing System.Windows.Forms.ToolStripItemCollection, 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.ToolStripItemCollection
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.ToolStripItemCollectionstatic JCTypeclassTypeThe type managed from JCOBridge.-
Fields inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
Null
-
-
Constructor Summary
Constructors Constructor Description ToolStripItemCollection()ToolStripItemCollection(java.lang.Object instance)Internal constructor.ToolStripItemCollection(ToolStrip owner, ToolStripItem[] value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ToolStripItemAdd(java.lang.String text)ToolStripItemAdd(java.lang.String text, Image image)ToolStripItemAdd(java.lang.String text, Image image, EventHandler onClick)ToolStripItemAdd(Image image)intAdd(ToolStripItem value)voidAddRange(ToolStripItem[] toolStripItems)voidAddRange(ToolStripItemCollection toolStripItems)static ToolStripItemCollectioncast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoToolStripItemCollection, a cast assert is made to check if types are compatible.voidClear()booleanContains(ToolStripItem value)booleanContainsKey(java.lang.String key)voidCopyTo(ToolStripItem[] array, int index)ToolStripItem[]Find(java.lang.String key, boolean searchAllChildren)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 TypeintIndexOf(ToolStripItem value)intIndexOfKey(java.lang.String key)voidInsert(int index, ToolStripItem value)voidRemove(ToolStripItem value)voidRemoveAt(int index)voidRemoveByKey(java.lang.String key)voidsetJCOInstance(JCObject instance)-
Methods inherited from class system.windows.forms.layout.ArrangedElementCollection
CopyTo, getCount, getIsReadOnly
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
GetEnumerator, iterator
-
-
-
-
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.ToolStripItemCollection- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ToolStripItemCollection
public ToolStripItemCollection(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
ToolStripItemCollection
public ToolStripItemCollection() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
ToolStripItemCollection
public ToolStripItemCollection(ToolStrip owner, ToolStripItem[] value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, AbandonedMutexException, NotSupportedException, Win32Exception, OutOfMemoryException, RankException, MulticastNotSupportedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionNotImplementedExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionAbandonedMutexExceptionNotSupportedExceptionWin32ExceptionOutOfMemoryExceptionRankExceptionMulticastNotSupportedException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classArrangedElementCollection- 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 interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classArrangedElementCollection- 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 interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classArrangedElementCollection- 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 interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classArrangedElementCollection- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classArrangedElementCollection
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classArrangedElementCollection- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static ToolStripItemCollection cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoToolStripItemCollection, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
ToolStripItemCollectioninstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Contains
public boolean Contains(ToolStripItem value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ContainsKey
public boolean ContainsKey(java.lang.String key) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, IndexOutOfRangeException, ObjectDisposedException, CultureNotFoundException, InvalidOperationException
-
Add
public int Add(ToolStripItem value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NotSupportedException, RankException, MulticastNotSupportedException, ThreadStateException, Win32Exception, OutOfMemoryException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionNotSupportedExceptionRankExceptionMulticastNotSupportedExceptionThreadStateExceptionWin32ExceptionOutOfMemoryExceptionInvalidEnumArgumentException
-
IndexOf
public int IndexOf(ToolStripItem value) throws java.lang.Throwable, ArgumentNullException, RankException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionRankExceptionArgumentOutOfRangeExceptionArgumentException
-
IndexOfKey
public int IndexOfKey(java.lang.String key) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, ArgumentException, IndexOutOfRangeException, ObjectDisposedException, AbandonedMutexException, CultureNotFoundException, InvalidOperationException
-
Add
public ToolStripItem Add(Image image) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ConfigurationErrorsException, ArgumentException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, SecurityException, IndexOutOfRangeException, InvalidEnumArgumentException, NullReferenceException, MulticastNotSupportedException, RankException
- Throws:
java.lang.ThrowableArgumentNullExceptionMissingManifestResourceExceptionConfigurationErrorsExceptionArgumentExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionSecurityExceptionIndexOutOfRangeExceptionInvalidEnumArgumentExceptionNullReferenceExceptionMulticastNotSupportedExceptionRankException
-
Add
public ToolStripItem Add(java.lang.String text) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ConfigurationErrorsException, ArgumentException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, SecurityException, IndexOutOfRangeException, InvalidEnumArgumentException, NullReferenceException, MulticastNotSupportedException, RankException
- Throws:
java.lang.ThrowableArgumentNullExceptionMissingManifestResourceExceptionConfigurationErrorsExceptionArgumentExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionSecurityExceptionIndexOutOfRangeExceptionInvalidEnumArgumentExceptionNullReferenceExceptionMulticastNotSupportedExceptionRankException
-
Add
public ToolStripItem Add(java.lang.String text, Image image) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ConfigurationErrorsException, ArgumentException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, SecurityException, IndexOutOfRangeException, InvalidEnumArgumentException, NullReferenceException, MulticastNotSupportedException, RankException
- Throws:
java.lang.ThrowableArgumentNullExceptionMissingManifestResourceExceptionConfigurationErrorsExceptionArgumentExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionSecurityExceptionIndexOutOfRangeExceptionInvalidEnumArgumentExceptionNullReferenceExceptionMulticastNotSupportedExceptionRankException
-
Add
public ToolStripItem Add(java.lang.String text, Image image, EventHandler onClick) throws java.lang.Throwable, ArgumentNullException, ConfigurationErrorsException, ArgumentException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, SecurityException, IndexOutOfRangeException, InvalidEnumArgumentException, NullReferenceException, MulticastNotSupportedException, RankException, ThreadStateException, Win32Exception, ObjectDisposedException
- Throws:
java.lang.ThrowableArgumentNullExceptionConfigurationErrorsExceptionArgumentExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionSecurityExceptionIndexOutOfRangeExceptionInvalidEnumArgumentExceptionNullReferenceExceptionMulticastNotSupportedExceptionRankExceptionThreadStateExceptionWin32ExceptionObjectDisposedException
-
Find
public ToolStripItem[] Find(java.lang.String key, boolean searchAllChildren) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, InvalidEnumArgumentException, MulticastNotSupportedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidEnumArgumentExceptionMulticastNotSupportedException
-
AddRange
public void AddRange(ToolStripItem[] toolStripItems) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, Win32Exception, OutOfMemoryException, RankException, MulticastNotSupportedException, ThreadStateException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionWin32ExceptionOutOfMemoryExceptionRankExceptionMulticastNotSupportedExceptionThreadStateExceptionInvalidEnumArgumentException
-
AddRange
public void AddRange(ToolStripItemCollection toolStripItems) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, Win32Exception, OutOfMemoryException, RankException, MulticastNotSupportedException, ThreadStateException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionWin32ExceptionOutOfMemoryExceptionRankExceptionMulticastNotSupportedExceptionThreadStateExceptionInvalidEnumArgumentException
-
Clear
public void Clear() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, InvalidEnumArgumentException, MulticastNotSupportedException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidEnumArgumentExceptionMulticastNotSupportedException
-
CopyTo
public void CopyTo(ToolStripItem[] array, int index) throws java.lang.Throwable, ArgumentException
- Throws:
java.lang.ThrowableArgumentException
-
Insert
public void Insert(int index, ToolStripItem value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NotSupportedException, RankException, MulticastNotSupportedException, ThreadStateException, Win32Exception, OutOfMemoryException, InvalidEnumArgumentException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionNotSupportedExceptionRankExceptionMulticastNotSupportedExceptionThreadStateExceptionWin32ExceptionOutOfMemoryExceptionInvalidEnumArgumentException
-
Remove
public void Remove(ToolStripItem value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, RankException, ConfigurationErrorsException, MulticastNotSupportedException, ThreadStateException, Win32Exception, OutOfMemoryException, KeyNotFoundException, OverflowException, IndexOutOfRangeException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionRankExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionThreadStateExceptionWin32ExceptionOutOfMemoryExceptionKeyNotFoundExceptionOverflowExceptionIndexOutOfRangeExceptionInvalidEnumArgumentException
-
RemoveAt
public void RemoveAt(int index) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, ConfigurationErrorsException, MulticastNotSupportedException, ThreadStateException, Win32Exception, OutOfMemoryException, KeyNotFoundException, OverflowException, IndexOutOfRangeException, InvalidEnumArgumentException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionThreadStateExceptionWin32ExceptionOutOfMemoryExceptionKeyNotFoundExceptionOverflowExceptionIndexOutOfRangeExceptionInvalidEnumArgumentException
-
RemoveByKey
public void RemoveByKey(java.lang.String key) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, ConfigurationErrorsException, MulticastNotSupportedException, ThreadStateException, Win32Exception, OutOfMemoryException, IndexOutOfRangeException, InvalidEnumArgumentException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionThreadStateExceptionWin32ExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionInvalidEnumArgumentException
-
-