WebPartDisplayModeCollection.Item[] Property

Definition

Gets a specific member of the collection according to its index or a unique identifier.

Overloads

Item[Int32]

Gets a specific member of the collection according to its index.

Item[String]

Gets a specific member of the collection according to a unique identifier.

Item[Int32]

Gets a specific member of the collection according to its index.

C#
public System.Web.UI.WebControls.WebParts.WebPartDisplayMode this[int index] { get; }

Parameters

index
Int32

An integer that indicates the index of a member of the collection.

Property Value

A WebPartDisplayMode at the specified index in the collection.

Remarks

The Item[] property enables you to access a WebPartDisplayMode object within a WebPartDisplayModeCollection collection by using an index number that represents its ordinal position in the collection.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Item[String]

Gets a specific member of the collection according to a unique identifier.

C#
public System.Web.UI.WebControls.WebParts.WebPartDisplayMode this[string modeName] { get; }

Parameters

modeName
String

A string that contains the name of a particular display mode in the collection.

Property Value

The first WebPartDisplayMode whose mode name matches the value of the modeName parameter.

Remarks

The Item[] property enables you to access a WebPartDisplayMode object within a WebPartDisplayModeCollection collection by using a string identifier for a particular display mode.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1