Files
Pf2eDataScrapper/Documentation/Pf2e.WPF/CollapseCommand.CanExecute(object).md
T
2025-10-04 22:52:22 +04:00

23 lines
1.2 KiB
Markdown

#### [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\.CanExecute\(object\) Method
Проверяет, может ли команда быть выполнена с указанным параметром\.
```csharp
public bool CanExecute(object? parameter);
```
#### Parameters
<a name='Pf2e.WPF.EntityViewer.EntityViewStructure.CollapseCommand.CanExecute(object).parameter'></a>
`parameter` [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object')
Параметр, передаваемый команде\.
Implements [CanExecute\(object\)](https://learn.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://learn.microsoft.com/en-us/dotnet/api/system.boolean 'System\.Boolean')
`true`, если команда может быть выполнена; в противном случае `false`\.