[]
        
(Showing Draft Content)

C1.Win.Ribbon.QatCustomButtonCollection.Item

this Property

this[int]

Gets or sets the RibbonButton at the specified position in the collection.

Declaration
public RibbonButton this[int index] { get; set; }
Parameters
Type Name Description
int index

Index of the item.

Property Value
Type Description
RibbonButton

The RibbonButton at the specified index.

this[string]

Gets the RibbonButton with the specified name.

Declaration
public RibbonButton this[string name] { get; }
Parameters
Type Name Description
string name

String containing the name of the button to locate (case-sensitive).

Property Value
Type Description
RibbonButton

The RibbonButton with the specified name.

Remarks

If the collection does not contain a button with the specified name, an ArgumentOutOfRangeException exception is thrown.