Bewerken

Delen via


Task Interface

Definition

Represents a single task running on the system.

public interface class Task
[System.Runtime.InteropServices.Guid("00020982-0000-0000-C000-000000000046")]
public interface Task
type Task = interface
Public Interface Task
Attributes

Remarks

The Task object is a member of the Tasks collection. The Tasks collection includes all the applications that are currently running on the system.

Use Tasks(index), where index is the application name or the index number, to return a single Task object.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Height

Returns or sets the height of the specified task window, in points.

Left

Returns or sets an Integer that represents the horizontal position of the specified task, measured in points.

Name

Returns or sets the name of the specified object.

Parent

Returns an object that represents the parent object of the specified object.

Top

Returns or sets the vertical position of the specified task, in points.

Visible

True if the specified object is visible.

Width

Returns or sets the width of the specified object, in points.

WindowState

Returns or sets the state of the specified task window.

Methods

Activate(Object)

Activates the Task object.

Close()

Closes the specified task.

Move(Int32, Int32)

Positions a task window.

Resize(Int32, Int32)

Sizes the specified task window. If the window is maximized or minimized, an error occurs.

SendWindowMessage(Int32, Int32, Int32)

Sends a Windows message and its associated parameters to the specified task.

Applies to