TextFrame.ValidLinkTarget Method
Determines whether the text frame of one shape can be linked to the text frame of another shape.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function ValidLinkTarget ( _
TargetTextFrame As TextFrame _
) As Boolean
'Usage
Dim instance As TextFrame
Dim TargetTextFrame As TextFrame
Dim returnValue As Boolean
returnValue = instance.ValidLinkTarget(TargetTextFrame)
bool ValidLinkTarget(
TextFrame TargetTextFrame
)
Parameters
- TargetTextFrame
Type: Microsoft.Office.Interop.Word.TextFrame
Required TextFrame object. The target text frame to which you'd like to link the specified text frame.
Return Value
Type: System.Boolean
Remarks
The TextFrame property returns True if TargetTextFrame is a valid target. It returns False if TargetTextFrame already contains text or is already linked, or if the shape doesn't support attached text.