Share via


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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Protected Function UpdateToolboxFilters ( _
    filterToUpdate As DiagramDocView.ToolboxItemFilterType, _
    calculateChanges As Boolean _
) As Boolean
protected bool UpdateToolboxFilters(
    DiagramDocView.ToolboxItemFilterType filterToUpdate,
    bool calculateChanges
)
protected:
bool UpdateToolboxFilters(
    DiagramDocView::ToolboxItemFilterType filterToUpdate, 
    bool calculateChanges
)
member UpdateToolboxFilters : 
        filterToUpdate:DiagramDocView.ToolboxItemFilterType * 
        calculateChanges:bool -> bool
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

Microsoft.VisualStudio.Modeling.Shell Namespace