public class DataObject extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Windows.Forms.DataObject
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.DataObject
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
DataObject()
Initializes a new instance by invoking the .NET constructor.
|
DataObject(NetObject data)
Initializes a new instance by invoking the .NET constructor.
|
DataObject(java.lang.Object instance)
Internal constructor.
|
DataObject(java.lang.String format,
NetObject data)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static DataObject |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into DataObject, a cast assert is made to check if types are compatible. |
boolean |
ContainsAudio()
Invokes the .NET member ContainsAudio.
|
boolean |
ContainsFileDropList()
Invokes the .NET member ContainsFileDropList.
|
boolean |
ContainsImage()
Invokes the .NET member ContainsImage.
|
boolean |
ContainsText()
Invokes the .NET member ContainsText.
|
boolean |
ContainsText(TextDataFormat format)
Invokes the .NET member ContainsText.
|
Stream |
GetAudioStream()
Invokes the .NET member GetAudioStream.
|
NetObject |
GetData(NetType format)
Invokes the .NET member GetData.
|
NetObject |
GetData(java.lang.String format)
Invokes the .NET member GetData.
|
NetObject |
GetData(java.lang.String format,
boolean autoConvert)
Invokes the .NET member GetData.
|
boolean |
GetDataPresent(NetType format)
Invokes the .NET member GetDataPresent.
|
boolean |
GetDataPresent(java.lang.String format)
Invokes the .NET member GetDataPresent.
|
boolean |
GetDataPresent(java.lang.String format,
boolean autoConvert)
Invokes the .NET member GetDataPresent.
|
StringCollection |
GetFileDropList()
Invokes the .NET member GetFileDropList.
|
java.lang.String[] |
GetFormats()
Invokes the .NET member GetFormats.
|
java.lang.String[] |
GetFormats(boolean autoConvert)
Invokes the .NET member GetFormats.
|
Image |
GetImage()
Invokes the .NET member GetImage.
|
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. |
java.lang.String |
GetText()
Invokes the .NET member GetText.
|
java.lang.String |
GetText(TextDataFormat format)
Invokes the .NET member GetText.
|
void |
SetAudio(byte[] audioBytes)
Invokes the .NET member SetAudio.
|
void |
SetAudio(JCORefOut dupParam0)
Invokes the .NET member SetAudio.
|
void |
SetAudio(Stream audioStream)
Invokes the .NET member SetAudio.
|
void |
SetData(NetObject data)
Invokes the .NET member SetData.
|
void |
SetData(NetType format,
NetObject data)
Invokes the .NET member SetData.
|
void |
SetData(java.lang.String format,
boolean autoConvert,
NetObject data)
Invokes the .NET member SetData.
|
void |
SetData(java.lang.String format,
NetObject data)
Invokes the .NET member SetData.
|
void |
SetFileDropList(StringCollection filePaths)
Invokes the .NET member SetFileDropList.
|
void |
SetImage(Image image)
Invokes the .NET member SetImage.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
SetText(java.lang.String textData)
Invokes the .NET member SetText.
|
void |
SetText(java.lang.String textData,
TextDataFormat format)
Invokes the .NET member SetText.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public DataObject()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
InvalidOperationException,
PlatformNotSupportedException,
IndexOutOfRangeException
java.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic DataObject(NetObject data) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException
data - the argument of type NetObjectjava.lang.Throwable - if the .NET constructor failsArgumentException - 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 itIndexOutOfRangeException - if the .NET member raises itpublic DataObject(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 DataObject(java.lang.String format,
NetObject data)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentException,
IndexOutOfRangeException,
PlatformNotSupportedException
format - the argument of type java.lang.Stringdata - the argument of type NetObjectjava.lang.Throwable - if the .NET constructor failsArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic static DataObject cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into DataObject, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDataObject instancejava.lang.Throwable - in case of error during cast operationpublic boolean ContainsAudio()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean ContainsFileDropList()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean ContainsImage()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean ContainsText()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
FormatException,
InvalidEnumArgumentException
java.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 itpublic boolean ContainsText(TextDataFormat format) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, InvalidEnumArgumentException
format - the argument of type TextDataFormatjava.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 itpublic Stream GetAudioStream() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetObject GetData(NetType format) throws java.lang.Throwable
format - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetObject GetData(java.lang.String format) throws java.lang.Throwable
format - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetObject GetData(java.lang.String format, boolean autoConvert) throws java.lang.Throwable
format - the argument of type java.lang.StringautoConvert - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean GetDataPresent(NetType format) throws java.lang.Throwable
format - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean GetDataPresent(java.lang.String format)
throws java.lang.Throwable
format - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean GetDataPresent(java.lang.String format,
boolean autoConvert)
throws java.lang.Throwable
format - the argument of type java.lang.StringautoConvert - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic StringCollection GetFileDropList() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException
java.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 itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic java.lang.String[] GetFormats()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String[] GetFormats(boolean autoConvert)
throws java.lang.Throwable
autoConvert - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic Image GetImage() 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 NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic java.lang.String GetText()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
FormatException,
InvalidEnumArgumentException
java.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 itpublic java.lang.String GetText(TextDataFormat format) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, InvalidEnumArgumentException
format - the argument of type TextDataFormatjava.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 itpublic void SetAudio(byte[] audioBytes)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException
audioBytes - the argument of type byte[]java.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 itpublic void SetAudio(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
dupParam0 - the argument of type JCORefOutjava.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 itpublic void SetAudio(Stream audioStream) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
audioStream - the argument of type Streamjava.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 itpublic void SetData(NetObject data) throws java.lang.Throwable
data - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void SetData(NetType format, NetObject data) throws java.lang.Throwable
format - the argument of type NetTypedata - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void SetData(java.lang.String format,
boolean autoConvert,
NetObject data)
throws java.lang.Throwable
format - the argument of type java.lang.StringautoConvert - the argument of type booleandata - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void SetData(java.lang.String format,
NetObject data)
throws java.lang.Throwable
format - the argument of type java.lang.Stringdata - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void SetFileDropList(StringCollection filePaths) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
filePaths - the argument of type StringCollectionjava.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 itpublic void SetImage(Image image) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
image - the argument of type Imagejava.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 itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void SetText(java.lang.String textData)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
FormatException,
InvalidEnumArgumentException
textData - the argument of type java.lang.Stringjava.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 itFormatException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itpublic void SetText(java.lang.String textData,
TextDataFormat format)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException,
InvalidEnumArgumentException
textData - the argument of type java.lang.Stringformat - the argument of type TextDataFormatjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises it