Back to Devexpress

IModelVariant.Caption Property

expressappframework-devexpress-dot-expressapp-dot-viewvariantsmodule-dot-imodelvariant.md

latest2.6 KB
Original Source

IModelVariant.Caption Property

Specifies the caption of a View variant.

Namespace : DevExpress.ExpressApp.ViewVariantsModule

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

NuGet Package : DevExpress.ExpressApp.ViewVariantsModule

Declaration

csharp
string Caption { get; set; }
vb
Property Caption As String

Property Value

TypeDescription
String

A string representing the caption of a View variant.

|

Remarks

The string specified by this property represents the corresponding ChangeVariantController.ChangeVariantAction item’s caption.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Caption property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

xaf-how-to-save-the-currently-opened-view-as-a-new-view-variant-at-runtime/CS/EF/ViewVariantSaveEF/ViewVariantSaveEF.Module/BusinessObjects/ViewVariantParameterObject.cs#L27

csharp
foreach (IModelVariant variant in variants) {
    if (variant.Caption == Caption) {
        ok = false;

See Also

View Variants (Switch Document Layouts)

IModelVariant Interface

IModelVariant Members

DevExpress.ExpressApp.ViewVariantsModule Namespace