Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XRControlStyleSheet.Insert(Int32, XRControlStyle) Method

Adds the specified control style to the collection at the specified position.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

public void Insert(
    int index,
    XRControlStyle item
)

#Parameters

Name Type Description
index Int32

A zero-based integer, specifying the position at which the table row is to be inserted.

item XRControlStyle

An XRControlStyle object, specifying the control style to insert into the collection.

#Remarks

The Insert method allows you to insert a table row at a specific position. Elements that follow the insertion point are moved down to accommodate the new element.

If the index parameter is equal to or greater than the number of elements in the collection, the new element is appended to the end.

To add a new elements to the end of the collection, see the XRControlStyleSheet.AddRange method.

See Also