Skip to main content
.NET Framework 4.6.2+

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

IFrameVariantsEngine.ChangeFrameViewToVariant(Frame, VariantsInfo, VariantInfo) Method

Changes the view variant.

Namespace: DevExpress.ExpressApp.ViewVariantsModule

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

#Declaration

void ChangeFrameViewToVariant(
    Frame frame,
    VariantsInfo variantsInfo,
    VariantInfo variantInfo
)

#Parameters

Name Type Description
frame Frame

A Frame object.

variantsInfo VariantsInfo

A VariantsInfo object that specifies a set of available view variants.

variantInfo VariantInfo

A VariantInfo object that specifies the new view variant.

#Remarks

Modifies the Frame.View value of the passed Frame object and the VariantsInfo.CurrentVariantId value of the passed VariantsInfo object, and saves the current choice when required. Creates a new View object based on the passed VariantInfo object or uses the ListPropertyEditor.RecreateListView if the NestedFrame is passed.

See Also