CommandBarComboBoxClass.List[Int32] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置 CommandBarComboBox 控件中的项。 读/写。
public:
virtual property System::String ^ List[int] { System::String ^ get(int Index); void set(int Index, System::String ^ value); };
public virtual string List[int Index] { get; set; }
member this.List(int) : string with get, set
Public Overridable Property List(Index As Integer) As String
参数
- Index
- Int32
要设置的列表项。
属性值
实现
示例
本示例检查“Custom”命令栏上标题为“Stock Data”的组合框控件中的第四个列表项。 如果该项不是“View News”,则显示一条消息提示用户组合框可能已损坏并要求重新安装应用程序。
注解
注意:此属性对于内置组合框控件是只读的。