IsImage
The
IsImage() method returns whether the DocumentLink instance’s Kind is an image.less than a minute
Overloads
IsImage()- Returns whether the DocumentLink instance’s Kind is an image.
IsImage()
Returns whether the DocumentLink instance’s Kind is an image.
[ParsedDocument] IsImage()
Parameters
None.
Returns
The method returns $true if the Kind is ImageInline,
ImageSelfReference, or ImageUsingReference or $false if not.
Exceptions
None.
Examples
The following example demonstrates retrieving the list of image links from a parsed document.
$Doc = Get-Document ./README.md
$Doc.Links | Where-Object -FilterScript { $_.IsImage() }