Share via


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して プロパティがシャドウされているかどうかを判断することが重要です。

適用対象