#### [Pf2e\.WPF](index.md 'index') ### [Pf2e\.WPF\.EntityViewer\.EntityViewStructure](Pf2e.WPF.EntityViewer.EntityViewStructure.md 'Pf2e\.WPF\.EntityViewer\.EntityViewStructure').[CollapseCommand](CollapseCommand.md 'Pf2e\.WPF\.EntityViewer\.EntityViewStructure\.CollapseCommand') ## CollapseCommand\.Execute\(object\) Method Выполняет команду с указанным параметром\. ```csharp public void Execute(object? parameter); ``` #### Parameters `parameter` [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') Параметр, передаваемый команде\. Implements [Execute\(object\)](https://learn.microsoft.com/en-us/dotnet/api/system.windows.input.icommand.execute#system-windows-input-icommand-execute(system-object) 'System\.Windows\.Input\.ICommand\.Execute\(System\.Object\)')