语言

StyleBase.Item[] 属性

定义

从收藏中返回一件物品。

重载

名称 说明
Item[Int32]

返回指定索引的样式。

Item[String]

返回与指定名称相符的样式。

Item[Int32]

返回指定索引的样式。

public:
 property System::Object ^ default[int] { System::Object ^ get(int index); };
public object this[int index] { get; }
member this.Item(int) : obj
Default Public ReadOnly Property Item(index As Integer) As Object

参数

index
Int32

样式索引,需检索。

属性值

an object 包含指定索引处的样式。

适用于

Item[String]

返回与指定名称相符的样式。

public:
 abstract property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ styleName); };
public abstract object this[string styleName] { get; }
member this.Item(string) : obj
Default Public MustOverride ReadOnly Property Item(styleName As String) As Object

参数

styleName
String

要取回的风格名称。

属性值

an object 包含与指定名称相符的样式。

适用于