ControlType.List 字段

定义

标识一个列表控件,例如列表框。

public: static initonly System::Windows::Automation::ControlType ^ List;
public static readonly System.Windows.Automation.ControlType List;
 staticval mutable List : System.Windows.Automation.ControlType
Public Shared ReadOnly List As ControlType 

字段值

注解

List 一个控件类型,它包含 ListItem 和 (可能) Group 控件类型。

控件 List 可用作独立控件或另一种控件类型的子控件。 例如,组合框具有一个 List 控件,该控件包含单击下拉按钮时显示的选项。 用作子控件时, List 仅在 UI 自动化树的控件视图中 (不在内容视图) 中。

用作子控件时, List 没有 Name 分配属性。

可以 List 包含 DataItem 控件。

适用于

另请参阅