Syntax

expression.LinkToContent(pfLinkRetVal)

expression A variable that represents a DocumentProperty object.

Parameters

Name Required/Optional Data Type Description
pfLinkRetVal Required Boolean Indicates whether the document property is linked to the container document.

Remarks

This property applies only to custom document properties. For built-in document properties, the value of this property is False.

Use the LinkSource property to set the source for the specified linked property. Setting the LinkSource property sets the LinkToContent property to True.

Example

This example displays the linked status of the custom document property. For the example to work, dp must be a valid DocumentProperty object.

Visual Basic for Applications
Sub DisplayLinkStatus(dp As DocumentProperty) Dim stat As String, tf As String If dp.LinkToContent Then tf = "" Else tf = "not " End If stat = "This property is " & tf & "linked" If dp.LinkToContent Then stat = stat + Chr(13) & "The link source is " & dp.LinkSource End If MsgBox stat End Sub
chain the contents of a container document combine the link status of a custom document property link link the value of a custom document to the content of a container document link to content Link To Content Property linkto LinkToContent linktocontent property merge the source of a linked property ofv set the source for a linked property

See also: