<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.7.25380.108" />

IDataObjectInternal

Internal interface for a data object class.
object GetData(string format, bool autoConvert)

Retrieves the data associated with the specified data format, using autoConvert to determine whether to convert the data to the format.

object GetData(string format)

Retrieves the data associated with the specified data format.

object GetData(Type format)

Retrieves the data associated with the specified class type format.

bool GetDataPresent(string format, bool autoConvert)

Determines whether data stored in this instance is associated with the specified format, using autoConvert to determine whether to convert the data to the format.

bool GetDataPresent(string format)

Determines whether data stored in this instance is associated with, or can be converted to, the specified format.

bool GetDataPresent(Type format)

Determines whether data stored in this instance is associated with, or can be converted to, the specified format.

string[] GetFormats(bool autoConvert)

Gets a list of all formats that data stored in this instance is associated with or can be converted to, using autoConvert to determine whether to retrieve all formats that the data can be converted to, or only native data formats.

string[] GetFormats()

Gets a list of all formats that data stored in this instance is associated with or can be converted to.

void SetData(string format, bool autoConvert, object data)

Stores the specified data and its associated format in this instance, using autoConvert to specify whether the data can be converted to another format.

void SetData(string format, object data)

Stores the specified data and its associated format in this instance.

void SetData(Type format, object data)

Stores the specified data and its associated class type in this instance.

void SetData(object data)

Stores the specified data in this instance, using the class of the data for the format.

bool TryGetData<T>(out T data)

Retrieves data associated with data format named after T, if that data is of type T.

bool TryGetData<T>(string format, out T data)

Retrieves data associated with the specified format if that data is of type T.

bool TryGetData<T>(string format, bool autoConvert, out T data)

Retrieves data in a specified format if that data is of type T, optionally converting the data to the specified format.

bool TryGetData<T>(string format, Func<TypeName, Type> resolver, bool autoConvert, out T data)

Retrieves typed data associated with the specified data format.