Selection.Toggle(EditingContext, ModelItem) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A selection helper method that takes the existing selection in the context and creates a new selection that contains the toggled state of the item. If the item is to be added to the selection, it is added as the primary selection.
public:
static System::Activities::Presentation::View::Selection ^ Toggle(System::Activities::Presentation::EditingContext ^ context, System::Activities::Presentation::Model::ModelItem ^ itemToToggle);
public static System.Activities.Presentation.View.Selection Toggle (System.Activities.Presentation.EditingContext context, System.Activities.Presentation.Model.ModelItem itemToToggle);
static member Toggle : System.Activities.Presentation.EditingContext * System.Activities.Presentation.Model.ModelItem -> System.Activities.Presentation.View.Selection
Public Shared Function Toggle (context As EditingContext, itemToToggle As ModelItem) As Selection
Parameters
- context
- EditingContext
The editing context to apply this selection change to.
- itemToToggle
- ModelItem
The item to toggle selection for.
Returns
A Selection object that contains the new selection.
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.