Back to Devexpress

BoolList.ResultValue Property

expressappframework-devexpress-dot-expressapp-dot-utils-dot-boollist.md

latest6.0 KB
Original Source

BoolList.ResultValue Property

Specifies the resulting value of the BoolList.

Namespace : DevExpress.ExpressApp.Utils

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public bool ResultValue { get; }
vb
Public ReadOnly Property ResultValue As Boolean

Property Value

TypeDescription
Boolean

A Boolean value representing the resulting value of the BoolList.

|

Remarks

The ResultValue property specifies the resulting value of the BoolList , which is based on the values from the BoolList ‘s collection of key/value pairs. The resulting value is determined based on the BoolListOperatorType mode specified via the BoolList constructor’s operatorType parameter. When the BoolListOperatorType.And mode is used, the resulting value of a BoolList is determined by logically multiplying all the values from the BoolList ‘s collection of key/value pairs. When the BoolListOperatorType.Or mode is used, the resulting value of a BoolList is determined by logically summing all the values from the BoolList ‘s collection of key/value pairs.

Generally, there is no need to use the ResultValue property as BoolList overrides the BoolList.Equals method. This allows you to use instances of the BoolList class in Boolean expressions, and compare such instances directly to Boolean values. The following code snippet illustrates this.

csharp
BoolList myList = new BoolList();
myList["myKey"] = true;
//...
if(myList) {
    //...
}

For a general description of the BoolList class, refer to the BoolList class description.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ResultValue 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-win-custom-action-with-custom-action-control/CS/EFCore/CustomActionEF/CustomActionEF.Module/CheckableSimpleAction.cs#L23

csharp
OnCheckedStateChanged();
if(Enabled.ResultValue && Active.ResultValue) {
    DoExecute();

xaf-win-enable-inplace-editing-in-tree-list-view/CS/EFCore/TreeListInplaceEF/TreeListInplaceEF.Win/Controllers/TreeListAppearanceControllerEx.cs#L11

csharp
base.OnTreeListChanged();
if (base.Active.ResultValue && base.View != null && base.View.Editor != null && base.View.Editor is TreeListEditor && ((TreeListEditor)base.View.Editor).TreeList != null) {
    ((TreeListEditor)base.View.Editor).TreeList.ShowingEditor += new System.ComponentModel.CancelEventHandler(control_ShowingEditor);

xaf-how-to-show-a-hyper-link-url-email-etc-for-a-business-class-property/CS/HyperLinkPropertyEditor.Web/WebHyperLinkStringPropertyEditor.cs#L22

csharp
protected override WebControl CreateEditModeControlCore() {
    if(AllowEdit.ResultValue) {
        ASPxTextBox textBox = RenderHelper.CreateASPxTextBox();

xaf-custom-action-type-blazor/CS/CustomActionSolution/CustomActionSolution.Blazor.Server/CustomAction/CheckableSimpleAction.cs#L17

csharp
OnCheckedStateChanged();
if (Enabled.ResultValue && Active.ResultValue) {
    DoExecute();

xaf-how-to-show-a-hyper-link-url-email-etc-for-a-business-class-property/VB/HyperLinkPropertyEditor.Web/WebHyperLinkStringPropertyEditor.vb#L24

vb
Protected Overrides Function CreateEditModeControlCore() As WebControl
    If AllowEdit.ResultValue Then
        Dim textBox As ASPxTextBox = RenderHelper.CreateASPxTextBox()

See Also

BoolList Class

BoolList Members

DevExpress.ExpressApp.Utils Namespace