Represents a set of variants available for the View.
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.