Bewerken

Delen via


ComponentDesigner.ShadowPropertyCollection.Item[String] Property

Definition

Gets or sets the object at the specified index.

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

Parameters

propertyName
String

The name of the property to access in the collection.

Property Value

The value of the specified property, if it exists in the collection. Otherwise, the value is retrieved from the current value of the nonshadowed property.

Remarks

This method returns the current value of a property, if the property has not been shadowed. Therefore, it is important to determine whether the property is shadowed by calling Contains.

Applies to