VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Office.OpenXml.Editor.Docx Namespace / DocxDocumentEditor Class / AddImageResource Methods / AddImageResource(Stream) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    AddImageResource(Stream) Method (DocxDocumentEditor)
    In This Topic
    Adds an image-resource to the worksheet.
    Syntax
    'Declaration
    
    Public Overloads Function AddImageResource( _
    ByVal imageStream
    The stream that contains image file.
    As System.IO.Stream _
    ) As System.String
    public System.String AddImageResource(
    System.IO.Stream imageStream
    )
    public: System.String AddImageResource(
    System.IO.Stream* imageStream
    )
    public:
    System.String AddImageResource(
    System.IO.Stream^ imageStream
    )

    Parameters

    imageStream
    The stream that contains image file.

    Return Value

    A string with resource identifier if image is added to the worksheet; null if image is not added to the worksheet.
    Exceptions
    ExceptionDescription
    Thrown if imageStream is null.
    Thrown if SDK cannot find decoder for image in imageStream.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also