#### [Pf2e\.Scrapper](index.md 'index') ### [Pf2e\.Scrapper\.WPF\.EntityViewer\.EntityViewStructure](Pf2e.Scrapper.WPF.EntityViewer.EntityViewStructure.md 'Pf2e\.Scrapper\.WPF\.EntityViewer\.EntityViewStructure').[CollapseCommand](CollapseCommand.md 'Pf2e\.Scrapper\.WPF\.EntityViewer\.EntityViewStructure\.CollapseCommand') ## CollapseCommand\.CanExecute\(object\) Method Проверяет, может ли команда быть выполнена с указанным параметром\. ```csharp public bool CanExecute(object? parameter); ``` #### Parameters `parameter` [System\.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System\.Object') Параметр, передаваемый команде\. Implements [CanExecute\(object\)](https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Input.ICommand.CanExecute#System_Windows_Input_ICommand_CanExecute_System_Object_ 'System\.Windows\.Input\.ICommand\.CanExecute\(System\.Object\)') #### Returns [System\.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System\.Boolean') `true`, если команда может быть выполнена; в противном случае `false`\.