DataObject.SetImage(Image) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
virtual void SetImage(System::Drawing::Image ^ image);
public virtual void SetImage (System.Drawing.Image image);
abstract member SetImage : System.Drawing.Image -> unit
override this.SetImage : System.Drawing.Image -> unit
Public Overridable Sub SetImage (image As Image)
Parameters
Exceptions
image
is null
.
Remarks
To retrieve image data from the data object, first use the ContainsImage method to determine whether the data object contains image data before retrieving it with the GetImage method.
Applies to
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.