包含当前在工具中有焦点的任务。
继承层次结构
System.Object
Microsoft.Windows.Design.ContextItem
Microsoft.Windows.Design.Interaction.FocusedTask
命名空间: Microsoft.Windows.Design.Interaction
程序集: Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Public NotInheritable Class FocusedTask _
Inherits ContextItem
public sealed class FocusedTask : ContextItem
public ref class FocusedTask sealed : public ContextItem
[<Sealed>]
type FocusedTask =
class
inherit ContextItem
end
public final class FocusedTask extends ContextItem
FocusedTask 类型公开以下成员。
构造函数
| 名称 | 说明 | |
|---|---|---|
![]() |
FocusedTask | 初始化 FocusedTask 类的新实例。 |
页首
属性
| 名称 | 说明 | |
|---|---|---|
![]() |
ItemType | 获取在内容项字典中用于标识内容项类型的键。 (重写 ContextItem.ItemType。) |
![]() |
Task | 获取具有焦点的任务。 |
页首
方法
| 名称 | 说明 | |
|---|---|---|
![]() |
Equals | 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。) |
![]() |
Finalize | 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。) |
![]() |
GetHashCode | 用作特定类型的哈希函数。 (继承自 Object。) |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) |
![]() |
OnItemChanged | 在上下文项存储到上下文项管理器中之前对其进行调用。 (继承自 ContextItem。) |
![]() |
ToString | 返回表示当前对象的字符串。 (继承自 Object。) |
页首
备注
如果任务是 nullnull 引用(在 Visual Basic 中为 Nothing),则说明当前没有任何任务有焦点。 不要自己创建 FocusedTask 项, 相反,通过任务的 BeginFocus 方法来激活任务。 当任务有焦点时,所有用户输入将通过该任务定向,直到该任务不再有焦点。 有关更多信息,请参见 Task。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
请参见
参考
Microsoft.Windows.Design.Interaction 命名空间
.gif)
.gif)
.gif)