次の方法で共有


DiagramDocView.UpdateToolboxFilters Method

Definition

Call to indicate that toolbox filter collections are invalid and need to be refreshed. Note that this does not actually refresh the toolbox. Clients may choose to do that based on the return value.

protected:
 bool UpdateToolboxFilters(Microsoft::VisualStudio::Modeling::Shell::DiagramDocView::ToolboxItemFilterType filterToUpdate, bool calculateChanges);
protected bool UpdateToolboxFilters (Microsoft.VisualStudio.Modeling.Shell.DiagramDocView.ToolboxItemFilterType filterToUpdate, bool calculateChanges);
member this.UpdateToolboxFilters : Microsoft.VisualStudio.Modeling.Shell.DiagramDocView.ToolboxItemFilterType * bool -> bool
Protected Function UpdateToolboxFilters (filterToUpdate As DiagramDocView.ToolboxItemFilterType, calculateChanges As Boolean) As Boolean

Parameters

filterToUpdate
DiagramDocView.ToolboxItemFilterType

Indicates which filter collection(s) need to be updated.

calculateChanges
Boolean

Indicates whether the method should calculate whether there have been changes to the collection (otherwise, it assemues there have been). This is expensive when dealing with large collections.

Returns

True if the toolbox filter collection changed as a result of the update.

Applies to