Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / SoundObject Class / FromFile Method
The file with the audio.
The audio format.

In This Topic
    FromFile Method (SoundObject)
    In This Topic
    Creates a SoundObject from a specified file.

    Note that only a limited set of audio formats is supported, see AudioFormat for details.

    Syntax
    'Declaration
     
    Public Shared Function FromFile( _
       ByVal fileName As System.String, _
       Optional ByVal audioFormat As AudioFormat _
    ) As SoundObject
    public static SoundObject FromFile( 
       System.string fileName,
       AudioFormat audioFormat
    )

    Parameters

    fileName
    The file with the audio.
    audioFormat
    The audio format.

    Return Value

    The created SoundObject.
    See Also