set_Sound()

Hyperlink::set_Sound(System::SharedPtr<IAudio>) method

Represents the playing sound of the hyperlink. Write IAudio.

void Aspose::Slides::Hyperlink::set_Sound(System::SharedPtr<IAudio> value) 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