WebPartDisplayModeCollection.Item[] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
property System::Web::UI::WebControls::WebParts::WebPartDisplayMode ^ default[int] { System::Web::UI::WebControls::WebParts::WebPartDisplayMode ^ get(int index); };
public System.Web.UI.WebControls.WebParts.WebPartDisplayMode this[int index] { get; }
member this.Item(int) : System.Web.UI.WebControls.WebParts.WebPartDisplayMode
Default Public ReadOnly Property Item(index As Integer) As WebPartDisplayMode
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
Item[String]
Gets a specific member of the collection according to a unique identifier.
public:
property System::Web::UI::WebControls::WebParts::WebPartDisplayMode ^ default[System::String ^] { System::Web::UI::WebControls::WebParts::WebPartDisplayMode ^ get(System::String ^ modeName); };
public System.Web.UI.WebControls.WebParts.WebPartDisplayMode this[string modeName] { get; }
member this.Item(string) : System.Web.UI.WebControls.WebParts.WebPartDisplayMode
Default Public ReadOnly Property Item(modeName As String) As WebPartDisplayMode
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.