Task Task 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
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 Application Application

Returns a Application object that represents the Microsoft Word application.

Creator Creator Creator

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

Height Height Height

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

Left Left Left

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

Name Name Name

Returns or sets the name of the specified object.

Parent Parent Parent

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

Top Top Top

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

Visible Visible Visible

True if the specified object is visible.

Width Width Width

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

WindowState WindowState WindowState

Returns or sets the state of the specified task window.

Methods

Activate(Object) Activate(Object) Activate(Object)

Activates the Task object.

Close() Close() Close()

Closes the specified task.

Move(Int32, Int32) Move(Int32, Int32) Move(Int32, Int32)

Positions a task window.

Resize(Int32, Int32) Resize(Int32, Int32) Resize(Int32, Int32)

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

SendWindowMessage(Int32, Int32, Int32) SendWindowMessage(Int32, Int32, Int32) SendWindowMessage(Int32, Int32, Int32)

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

Applies to