Spread WinForms 15
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / IPicture Interface / ChangeImage Method / ChangeImage(String,AspectRatio) Method
The path to the new image.
Specifies how to resize the new image. If omitted, the original height is kept.


In This Topic
ChangeImage(String,AspectRatio) Method
In This Topic
Replaces the current image with a different image.
Syntax
'Declaration
 
Overloads Sub ChangeImage( _
   ByVal fileName As String, _
   Optional ByVal aspect As AspectRatio _
) 
 
'Usage
 
Dim instance As IPicture
Dim fileName As String
Dim aspect As AspectRatio
 
instance.ChangeImage(fileName, aspect)

Parameters

fileName
The path to the new image.
aspect
Specifies how to resize the new image. If omitted, the original height is kept.
See Also