A newer version of this page is available. Switch to the current version.

VariantsInfo Class

Represents a set of variants available for the View.

Namespace: DevExpress.ExpressApp.ViewVariantsModule

Assembly: DevExpress.ExpressApp.ViewVariantsModule.v18.2.dll


public class VariantsInfo
Public Class VariantsInfo


The View Variants Module provides the ability to have several customized variants of the same View. The VariantsInfo class is used to represent a set of variants available for a particular View.

The View variants read-only collection is exposed via the VariantsInfo.Items property. The items of this collection are represented by the VariantInfo structure. The View variants are assigned to a certain varied View. This View identifier is exposed via the VariantsInfo.RootViewId property. The currently selected View variant is exposed via the VariantsInfo.CurrentVariantId property.

Use the VariantsInfo.GetCurrentVariantInfo method to access the currently selected variant. You can search the particular variant by its identifier via the VariantsInfo.FindById method.


See Also