32 lines
906 B
Markdown
32 lines
906 B
Markdown
|
|
# UIEditorMenuSession::CloseAll
|
||
|
|
|
||
|
|
公开方法,详见头文件声明。
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
UIEditorMenuSessionMutationResult CloseAll( ::XCEngine::UI::Widgets::UIPopupDismissReason dismissReason = ::XCEngine::UI::Widgets::UIPopupDismissReason::Programmatic);
|
||
|
|
```
|
||
|
|
|
||
|
|
该方法声明于 `XCEditor/Shell/UIEditorMenuSession.h`,当前页面用于固定 `UIEditorMenuSession` 类目录下的方法级 canonical 路径。
|
||
|
|
|
||
|
|
**参数:**
|
||
|
|
- `dismissReason` - 参数语义详见头文件声明。
|
||
|
|
|
||
|
|
**返回:** `UIEditorMenuSessionMutationResult` - 返回值语义详见头文件声明。
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
#include <XCEditor/Shell/UIEditorMenuSession.h>
|
||
|
|
|
||
|
|
void Example() {
|
||
|
|
XCEngine::UIEditorMenuSession object;
|
||
|
|
// 根据上下文补齐参数后调用 UIEditorMenuSession::CloseAll(...)。
|
||
|
|
(void)object;
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [返回类总览](UIEditorMenuSession.md)
|
||
|
|
- [返回模块目录](../Shell.md)
|