返回或设置所链接的自定义文档属性的链接源。String 类型,可读写。
本属性只用于自定义文档属性,不能用于内置文档属性。
指定链接的链接源由容器应用程序定义。
设置 LinkSource 属性将使 LinkToContent 属性值设为 True。
本示例可实现的功能为:显示自定义文档属性的链接状态。要使本示例正常工作,dp
必须是一个有效的 DocumentProperty 对象。
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