Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ReadOnlyState Class

.NET Framework 4.6 and 4.5

Represents a ContextItem that is published in the editing context and that indicates whether the Windows Workflow Foundation designer is in a read-only state.


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

public sealed class ReadOnlyState : ContextItem

The ReadOnlyState type exposes the following members.

Public methodReadOnlyStateInitializes a new instance of the ReadOnlyState class.

Public propertyIsReadOnlyGets a value that indicates whether the object is read-only.
Public propertyItemTypeGets the type of the current object. (Overrides ContextItem.ItemType.)

Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Visual elements can bind to this property in order to provide different behavior in a read-only state (such as the ExpressionTextBox disallowing edits and setting the state to “Disabled”). If a hosting application would like to set the designer to a read-only state, this ContextItem can be retrieved and can be set to false.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft