SelectionOperations.Toggle Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates a new selection that is to be the toggled state of the existing selection in the context.
Namespace: System.Activities.Design.Interaction
Assembly: System.Activities.Design.Base (in System.Activities.Design.Base.dll)
Syntax
'Declaration
Public Shared Function Toggle ( _
context As EditingContext, _
itemToToggle As ModelItem _
) As Selection
'Usage
Dim context As EditingContext
Dim itemToToggle As ModelItem
Dim returnValue As Selection
returnValue = SelectionOperations.Toggle(context, _
itemToToggle)
public static Selection Toggle(
EditingContext context,
ModelItem itemToToggle
)
public:
static Selection^ Toggle(
EditingContext^ context,
ModelItem^ itemToToggle
)
public static function Toggle(
context : EditingContext,
itemToToggle : ModelItem
) : Selection
static member Toggle :
context:EditingContext *
itemToToggle:ModelItem -> Selection
Parameters
- context
Type: System.Activities.Design.EditingContext
The editing context to which the selection toggle is applied.
- itemToToggle
Type: System.Activities.Design.Model.ModelItem
The item that is the toggled state of the existing selection.
Return Value
Type: System.Activities.Design.Interaction.Selection
A set of one or more objects selected by a user in a designer.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | context is nulla null reference (Nothing in Visual Basic). |
| ArgumentNullException | itemToToggle is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4