DkmScriptDocument.SetRaiseContentEvents(Boolean) Method

Definition

Enables or disables raising events when the content of the document is changed. By default, documents do not generate content events. So this method should be called by any component that wishes to receive content events. The script document manager maintains a count of the number of calls to enable content events, and will raise events whenever this count is greater than 0. Callers should take care to ensure that SetRaiseContentEvents(false) is called ONLY after a successful call to SetRaiseContentEvents(true). Content events are automatically disabled when the document is unloaded.

public:
 void SetRaiseContentEvents(bool Enable);
public:
 void SetRaiseContentEvents(bool Enable);
void SetRaiseContentEvents(bool Enable);
public void SetRaiseContentEvents (bool Enable);
member this.SetRaiseContentEvents : bool -> unit
Public Sub SetRaiseContentEvents (Enable As Boolean)

Parameters

Enable
Boolean

[In] If true, content events should be enabled for this document. If false, the count of content event listeners is decremented. When the count reaches zero, no further events will be sent.

Applies to