.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

BoolList.Item[String] Property

Specifies the value associated with a particular key from the BoolList's key/value pair collection.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public bool this[string key] { get; set; }
Public Property Item(key As String) As Boolean
public bool this[string key] { get; set; }
Public Property Item(key As String) As Boolean
public bool this[string key] { get; set; }
Public Property Item(key As String) As Boolean

Parameters

Name Type Description
key String

A string representing the key from the BoolList's key/value pair collection, whose associated value will be retrieved.

Parameters

Name Type Description
key String

A string representing the key from the BoolList's key/value pair collection, whose associated value will be retrieved.

Parameters

Name Type Description
key String

A string representing the key from the BoolList's key/value pair collection, whose associated value will be retrieved.

Property Value

Type Description
Boolean

A Boolean value associated with the specified key.

Property Value

Type Description
Boolean

A Boolean value associated with the specified key.

Property Value

Type Description
Boolean

A Boolean value associated with the specified key.

Remarks

You can use the indexer property to either retrieve the value associated with a key, or to assign a new value. The following code snippet illustrates this.

BoolList mylist = new BoolList();
mylist["myKey"] = true;
Boolean myValue = mylist["myKey"]; 
//myValue == true;

When using the indexer property to assign the value to a key, if a key/value pair with the specified key does not exist, it is created. To get all keys from the BoolList's collection of key/value pairs, use the BoolList.GetKeys method.

See Also