DiagramDocView.UpdateToolboxFilters Method

Updates the collection of Toolbox filters to use with the active diagram view.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'Declaration
Protected Function UpdateToolboxFilters ( _
    filterToUpdate As DiagramDocView.ToolboxItemFilterType, _
    calculateChanges As Boolean _
) As Boolean
'Usage
Dim filterToUpdate As DiagramDocView.ToolboxItemFilterType 
Dim calculateChanges As Boolean 
Dim returnValue As Boolean 

returnValue = Me.UpdateToolboxFilters(filterToUpdate, _
    calculateChanges)
protected bool UpdateToolboxFilters(
    DiagramDocView.ToolboxItemFilterType filterToUpdate,
    bool calculateChanges
)
protected:
bool UpdateToolboxFilters(
    DiagramDocView.ToolboxItemFilterType filterToUpdate, 
    bool calculateChanges
)
protected function UpdateToolboxFilters(
    filterToUpdate : DiagramDocView.ToolboxItemFilterType, 
    calculateChanges : boolean
) : boolean

Parameters

  • calculateChanges
    Type: System.Boolean

    true to check the filter collections have changed; false to assume that the filter collections have changed.

Return Value

Type: System.Boolean
true if the collection of Toolbox filters was updated; otherwise, false.

Remarks

This method does not refresh the Toolbox. It updates the Toolbox filters but does not apply them. Clients can refresh the Toolbox based on the return value.

.NET Framework Security

See Also

Reference

DiagramDocView Class

DiagramDocView Members

Microsoft.VisualStudio.Modeling.Shell Namespace