Deutsch | English | Español | Français |
Italiano | 日本語 | 한국어 | Português |
Pусский | 简体中文 | 繁體中文 |
This dispinterface provides a connection point so that an application or control can intercept events fired by any element that is a text container.
Members
The HTMLTextContainerEvents2 interface inherits from the IUnknown interface. HTMLTextContainerEvents2 also has these types of members:
Events
The HTMLTextContainerEvents2 interface has these events.
Event | Description |
---|---|
click |
Fires when the user clicks the left mouse button on the object. Note Starting with IE11, this event fires a
MSPointerEvent object instead of
MouseEvent. You can use the MouseEvent.
pointerType property to determine the type of contact that the click originated from (touch, mouse, or pen).
|
activate |
Fires when the object is set as the IHTMLDocument2::activeElement. |
afterupdate |
Fires on a databound object after successfully updating the associated data in the data source object. |
beforeactivate |
Fires immediately before the object is set as the IHTMLDocument2::activeElement. |
beforecopy |
Fires on the source object before the selection is copied to the system clipboard. |
beforecut |
Fires on the source object before the selection is deleted from the document. |
beforepaste |
Fires on the target object before the selection is pasted from the system clipboard to the document. |
beforeupdate |
Fires on a databound object before updating the associated data in the data source object. |
blur |
Fires when the object loses the input focus. |
cellchange |
Fires when data changes in the data provider. |
change |
Fires when the contents of the object or selection have changed. |
contextmenu |
Fires when the user clicks the right mouse button in the client area, opening the context menu. Note Starting with IE11, this event fires a
MSPointerEvent object instead of
MouseEvent. You can use the MouseEvent.
pointerType property to determine the type of contact that the click originated from (touch, mouse, or pen).
|
controlselect |
Fires when the user is about to make a control selection of the object. |
cut |
Fires on the source element when the object or selection is removed from the document and added to the system clipboard. |
dataavailable |
Fires periodically as data arrives from data source objects that asynchronously transmit their data. |
datasetchanged |
Fires when the data set exposed by a data source object changes. |
dblclick |
Fires when the user double-clicks the object. Note Starting with IE11, this event fires a
MSPointerEvent object instead of a
MouseEvent. You can use the MouseEvent.
pointerType property to determine the type of contact that the click originated from (touch, mouse, or pen).
|
deactivate |
Fires when the IHTMLDocument2::activeElement is changed from the current object to another object in the parent document. |
drag |
Fires on the source object continuously during a drag operation. |
dragend |
Fires on the source object when the user releases the mouse at the close of a drag operation. |
dragenter |
Fires on the target element when the user drags the object to a valid drop target. |
dragleave |
Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. |
dragover |
Fires on the target element continuously while the user drags the object over a valid drop target. |
dragstart |
Fires on the source object when the user starts to drag a text selection or selected object. |
drop |
Fires on the target object when the mouse button is released during a drag-and-drop operation. |
errorupdate |
Fires on a databound object when an error occurs while updating the associated data in the data source object. |
filterchange |
Fires when a visual filter changes state or completes a transition. |
focus |
Fires when the object receives focus. |
focusin |
Fires for an element just prior to setting focus on that element. |
focusout |
Fires for the current element with focus immediately after moving focus to another element. |
help |
Fires when the user presses the F1 key while the client is the active window. |
keydown |
Fires when the user presses a key. |
keypress |
Fires when the user presses an alphanumeric key. |
layoutcomplete |
Fires when the print or print preview layout process finishes filling the current LayoutRect object with content from the source document. |
losecapture |
Fires when the object loses the mouse capture. |
mousedown |
Fires when the user clicks the object with either mouse button. |
mouseenter |
Fires when the user moves the mouse pointer into the object. |
mouseleave |
Fires when the user moves the mouse pointer outside the boundaries of the object. |
mousemove |
Fires when the user moves the mouse over the object. |
mouseout |
Fires when the user moves the mouse pointer outside the boundaries of the object. |
mouseover |
Fires when the user moves the mouse pointer into the object. |
mouseup |
Fires when the user releases a mouse button while the mouse is over the object. |
mousewheel |
Fires when the wheel button is rotated. |
move |
Fires when the object moves. |
moveend |
Fires when the object stops moving. |
movestart |
Fires when the object starts to move. |
onbeforedeactivate |
Fires immediately before the IHTMLDocument2::activeElement is changed from the current object to another object in the parent document. |
ondatasetcomplete |
Fires to indicate that all data is available from the data source object. |
onkeyup |
Fires when the user releases a key. |
onpage | |
onselect |
Fires when the current selection changes. |
paste |
Fires on the target object when the user pastes data, transferring the data from the system clipboard to the document. |
propertychange |
Fires when a property changes on the object. Note The
HTMLTextContainerEvents2::onpropertychange event is only supported in conjunction with the legacy
IHTMLElement2::attachEvent IE-only event registration model, which has
deprecated since Internet Explorer 9 in favor of the W3C standard "
IEventTarget::addEventListener" event model.
|
readystatechange |
Fires when the state of the object has changed. |
resize |
Fires when the size of the object is about to change. |
resizeend |
Fires when the user finishes changing the dimensions of the object in a control selection. |
resizestart |
Fires when the user begins to change the dimensions of the object in a control selection. |
rowenter |
Fires to indicate that the current row has changed in the data source and new data values are available on the object. |
rowexit |
Fires just before the data source control changes the current row in the object. |
rowsdelete |
Fires when rows are about to be deleted from the recordset. |
rowsinserted |
Fires just after new rows are inserted in the current recordset. |
scroll |
Fires when the user repositions the scroll box in the scroll bar on the object. |
selectstart |
Fires when the object is being selected. |
Remarks
body, button, caption, div, marquee, table, and textArea elements are all text containers.
Requirements
Minimum supported client |
Windows XP |
---|---|
Minimum supported server |
Windows 2000 Server |
Header |
|
IDL |
|
DLL |
|