LinkPathRelative

OleObjectFrame.LinkPathRelative 属性

如果存在,则返回链接文件的相对路径,否则返回空字符串。只读字符串。

public string LinkPathRelative { get; }

备注

在Ppt演示文稿中,某些Ole对象链接可能具有相对表示形式。

示例

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

    if (oleFrame != null)
    {
        Console.WriteLine("相对路径: " + oleFrame.LinkPathRelative);
    } 
}

另请参阅