Sound

Hyperlink.Sound property

Represents the playing sound of the hyperlink. Read/write IAudio.

public IAudio Sound { get; set; }

Examples

[C#]
using (Presentation presentation = new Presentation("demo.pptx"))
{
    ISlide slide = presentation.Slides[0];
    
    // Get the first shape hyperlink
    IHyperlink link = presentation.Slides[0].Shapes[0].HyperlinkClick;
       
    if (link.Sound != null)
    {
        // Extract the hyperlink sound in byte array
        byte[] audioData = link.Sound.BinaryData;
    }
}

See Also