get_LinkPathRelative()

IOleObjectFrame::get_LinkPathRelative() method

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

virtual System::String Aspose::Slides::IOleObjectFrame::get_LinkPathRelative()=0

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