get_LinkPathRelative()

OleObjectFrame::get_LinkPathRelative() method

Returns the relative path to a linked file if present, otherwise returns an empty string. Readonly System::String.

System::String Aspose::Slides::OleObjectFrame::get_LinkPathRelative() override

Remarks

In the Ppt presentations, some Ole object links may have a relative representation.

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

auto oleFrame = System::AsCast<Aspose::Slides::IOleObjectFrame>(presentation->get_Slides()->idx_get(0)->get_Shapes()->idx_get(0));

if (oleFrame != nullptr)
{
    System::Console::WriteLine(System::String(u"The relative path: ") + oleFrame->get_LinkPathRelative());
}

See Also