IsSelfReferential

The IsSelfReferential() method returns whether the DocumentLink instance’s Kind is self-reference.

Overloads

IsSelfReferential()
Returns whether the DocumentLink instance’s Kind is self-reference.

IsSelfReferential()

Returns whether the DocumentLink instance’s Kind is self-reference.

[ParsedDocument] IsSelfReferential()

Parameters

None.

Returns

The method returns $true if the Kind is ImageSelfReference or TextSelfReference, or $false if not.

Exceptions

None.

Examples

The following example demonstrates retrieving the list of reference links whose ReferenceID is also their text from a parsed document.

$Doc = Get-Document ./README.md
$Doc.Links | Where-Object -FilterScript { $_.IsSelfReferential() }