Table of Contents

TTMSFNCWXElementContainer Class

Represents a single block of HTML content hosted inside the container control, with its own markup, optional script and style, positioning, and a set of actions that respond to events from its elements.

API unit family: TMSFNCWXContainer Inherits from: TCollectionItem

Syntax

TTMSFNCWXElementContainer = class(TCollectionItem)

Remarks

Each element container is rendered as a positioned region in the hosted page. Set HTML to define the markup, use Position and Margins to place it, and add actions through AddAction or Actions to react to element events.

Properties

Name Description
Actions The collection of actions that respond to events of the HTML elements in this container.
Container The host control that owns this element container.
DataBoolean A user-defined boolean that can be associated with the element container.
DataInteger A user-defined integer that can be associated with the element container.
DataObject A user-defined object reference that can be associated with the element container.
DataPointer A user-defined pointer that can be associated with the element container.
DataString A user-defined string that can be associated with the element container.
HTML The HTML markup rendered for this element container.
HTMLAsBase64 The read-only Base64-encoded, URL-encoded representation of HTML, used when transferring the markup to the hosted page.
HTMLElementClassName The CSS class name assigned to the wrapping HTML element of this container.
HTMLElementID The id assigned to the wrapping HTML element of this container.
ID The read-only unique identifier of the element container, generated on first access and used to track the element in the hosted page.
Margins The outer spacing around the element container relative to its anchor position.
Position The anchor position of the element container within the host control area.
Recreate When True, the unique identifier is regenerated the next time it is read, forcing the element to be recreated in the hosted page.
Script The JavaScript code associated with this element container.
ScriptAsBase64 The read-only Base64-encoded representation of Script, used when transferring the script to the hosted page.
Style The CSS style rules applied to this element container.
StyleAsBase64 The read-only Base64-encoded representation of Style, used when transferring the style to the hosted page.
UseDefaultStyle When True, applies the built-in default styling to the wrapping element. When False, only the supplied style is used.
Visible When True, the element container is shown in the hosted page. When False, it is hidden.

Methods

Name Description
AddAction Adds an action that listens for an event on the given HTML element and adds it to Actions.