get_Sound()

Hyperlink::get_Sound() method

Represents the playing sound of the hyperlink. Read IAudio.

System::SharedPtr<IAudio> Aspose::Slides::Hyperlink::get_Sound() override

Remarks

auto presentation = System::MakeObject<Presentation>(u"demo.pptx");

// Get the first shape hyperlink
auto link = presentation->get_Slides()->idx_get(0)->get_Shapes()->idx_get(0)->get_HyperlinkClick();

if (link->get_Sound() != nullptr)
{
    // Extract the hyperlink sound in byte array
    System::ArrayPtr<uint8_t> audioData = link->get_Sound()->get_BinaryData();
}

See Also