ExpressionTextBox.ExpressionType Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the expression type.

Namespace:   System.Activities.Presentation.View
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

public Type ExpressionType { get; set; }

Property Value

Type: System.Type

Returns a Type that contains the expression type.

Setting the type is strongly recommended. If you do not set ExpressionType, you can’t use the ExpressionTextBox to bind to delegate types and you do not get validation from the hosted compiler. This compiler validation checks to see if the type of the entered expression matches the expected type, and displays a red box around the ExpressionTextBox when invalid data is entered into it on an activity designer.

.NET Framework
Available since 4.0
Return to top