VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Pdf.Content Namespace / PdfContentXObjectEditor Class / SetXObjectResource Methods / SetXObjectResource(PdfContentXObject,PdfResource) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    SetXObjectResource(PdfContentXObject,PdfResource) Method (PdfContentXObjectEditor)
    In This Topic
    Sets the resource of content XObject.
    Syntax
    'Declaration
    
    Public Overloads Sub SetXObjectResource( _
    ByVal xObject
    The content XObject, which should be changed.
    As PdfContentXObject, _
    ByVal resource
    The resource, which should be in xObject.
    As Vintasoft.Imaging.Pdf.Tree.PdfResource _
    )

    Parameters

    xObject
    The content XObject, which should be changed.
    resource
    The resource, which should be in xObject.
    Exceptions
    ExceptionDescription
    Thrown if xObject or resource is null.
    Thrown if XObjects does not contain xObject.
    Thrown if resource is not PdfImageResource and is not PdfFormXObjectResource.
    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