ComponentDesigner.ShadowPropertyCollection.Item[String] 屬性

定義

取得或設定在指定索引處的物件。

public:
 property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ propertyName); void set(System::String ^ propertyName, System::Object ^ value); };
public object this[string propertyName] { get; set; }
public object? this[string propertyName] { get; set; }
member this.Item(string) : obj with get, set
Default Public Property Item(propertyName As String) As Object

參數

propertyName
String

要在集合中存取的屬性名稱。

屬性值

如果指定屬性的值存在集合中,則為指定屬性的值。 否則,會從非遮蔽屬性的目前值中擷取值。

備註

如果屬性尚未陰影,這個方法會傳回屬性的目前值。 因此,請務必呼叫 來判斷屬性是否遮 Contains蔽。

適用於