Επεξεργασία

Κοινή χρήση μέσω


StructureChangedEventHandler Delegate

Definition

Represents the method implemented by the client application to handle the event raised when the UI Automation tree structure has changed.

public delegate void StructureChangedEventHandler(System::Object ^ sender, StructureChangedEventArgs ^ e);
public delegate void StructureChangedEventHandler(object sender, StructureChangedEventArgs e);
type StructureChangedEventHandler = delegate of obj * StructureChangedEventArgs -> unit
Public Delegate Sub StructureChangedEventHandler(sender As Object, e As StructureChangedEventArgs)

Parameters

sender
Object

The object that raised the event.

e
StructureChangedEventArgs

Information about the event.

Remarks

The following table describes the information in the event received by the delegate for different structure changes.

e.structureChangeType sender e.runtimeId
ChildAdded The child that was added. The child that was added.
ChildRemoved The parent of the child that was removed. The child that was removed.
ChildrenBulkAdded The parent of the children that were added. The parent of the children that were added.
ChildrenBulkRemoved The parent of the children that were removed. The parent of the children that were removed.
ChildrenInvalidated The parent of the children that were invalidated. The parent of the children that were invalidated

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to

See also