LinkPathRelative

Propriété IOleObjectFrame.LinkPathRelative

Renvoie le chemin relatif vers un fichier lié s’il est présent, sinon renvoie une chaîne vide. Chaîne en lecture seule.

public string LinkPathRelative { get; }

Remarques

Dans les présentations Ppt, certains liens d’objets Ole peuvent avoir une représentation relative.

Exemples

[C#]
using (Presentation presentation = new Presentation("demo.ppt"))
{
    IOleObjectFrame oleFrame = presentation.Slides[0].Shapes[0] as IOleObjectFrame;

    if (oleFrame != null)
    {
        Console.WriteLine("Le chemin relatif : " + oleFrame.LinkPathRelative);
    } 
}

Voir aussi