Table of Contents

TTMSFNCWXContainerLink Class

Defines an external resource referenced by the hosted page, such as a script, a stylesheet link, or an inline style block.

API unit family: TMSFNCWXContainer Inherits from: TCollectionItem

Syntax

TTMSFNCWXContainerLink = class(TCollectionItem)

Remarks

Use Kind to choose between a link, a script, and a style block. Set URL for external resources or Content for inline script or style content.

Properties

Name Description
Async When True, emits the async attribute so a script is fetched and executed asynchronously.
CharSet The character set attribute emitted for a script resource.
Content The inline content for a script or style block, used instead of an external URL.
Defer When True, emits the defer attribute so a script executes after the page has been parsed.
Enabled When True, the link is included in the hosted page. When False, it is skipped.
Kind Selects whether the resource is emitted as a link, a script, or an inline style block.
Rel The relationship attribute emitted for a link resource, for example stylesheet.
URL The address of the external resource referenced by the link.

Methods

Name Description
LinkChanged Responds to a change in the link content by refreshing the link.
UpdateLink Refreshes the owning control at design time so changes to the link take effect.