Calc .NET Class Library
Show/Hide TOC

# DocumentReplace(Image, String, Byte) Method

Replaces the image of the specified image element. The size, the position and all other properties of the frame remain unchanged.

## Definition

Namespace: Independentsoft.Office.Odf
Assembly: Independentsoft.Calc (in Independentsoft.Calc.dll) Version: 3.0.520.1+c6c593d5629a051e0af021b238c5d69d764f9686
C#

    public bool Replace(
    	Image image,
    	string fileName,
    	byte[] buffer
    )

VB

    Public Function Replace (
    	image As Image,
    	fileName As String,
    	buffer As Byte()
    ) As Boolean

#### Parameters

image Image
  The image to replace.
fileName String
  The file name of the new image.
buffer Byte
  The new image.

#### Return Value

Boolean
true if the image was replaced.

## See Also

#### Reference

Document Class
Replace Overload
Independentsoft.Office.Odf Namespace