IsText

The IsText() method returns whether the DocumentLink instance’s Kind is text.

Overloads

IsText()
Returns whether the DocumentLink instance’s Kind is text.

IsText()

Returns whether the DocumentLink instance’s Kind is text.

[ParsedDocument] IsText()

Parameters

None.

Returns

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

Exceptions

None.

Examples

The following example demonstrates retrieving the list of text links from a parsed document.

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