다음을 통해 공유


Shape.LinkFormat Property (Word)

Returns a LinkFormat object that represents the link options of a shape that is linked to a file. Read/only.

Syntax

expression .LinkFormat

expression A variable that represents a Shape object.

Example

This example inserts a graphic as an inline shape (using an INCLUDEPICTURE field) and then displays the source name (Tiles.bmp).

Set iShape = ActiveDocument.InlineShapes _ 
 .AddPicture(FileName:="C:\windows\Tiles.bmp", _ 
 LinkToFile:=True, SaveWithDocument:=False, _ 
 Range:=Selection.Range) 
MsgBox iShape.LinkFormat.SourceName

See Also

Concepts

Shape Object Members

Shape Object