AnyCAD Rapid API 2026
Help you to create a better world!
载入中...
搜索中...
未找到
AnyCAD.Foundation.DialogUtil类 参考
类 AnyCAD.Foundation.DialogUtil 继承关系图:

Public 成员函数

 DialogUtil (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 

静态 Public 成员函数

static Path OpenFileDialog (string title, StringList filter)
 打开文件对话框
 
static PathList OpenFilesDialog (string title, StringList filter)
 打开多个文件对话框
 
static Path SaveFileDialog (string title, string fileName, StringList filter)
 保存文件对话框
 
static Path OpenFolderDialog (string title)
 打开文件夹对话框
 
static void NotifyMessage (string title, string content)
 通知消息对话框
 
static void NotifyMessageU (string title, string content)
 通知消息对话框
 
static bool ShowMessageBox (string title, string content)
 显示消息对话框
 
static bool ShowMessageBoxU (string title, string content)
 显示消息对话框
 
static bool ShowWarningBox (string title, string content)
 显示消息对话框
 
static bool ShowWarningBoxU (string title, string content)
 显示消息对话框
 

详细描述

Group: Common The Dialog utility

成员函数说明

◆ NotifyMessage()

static void AnyCAD.Foundation.DialogUtil.NotifyMessage ( string title,
string content )
static

通知消息对话框

参数
title标题
content内容UTF8

◆ NotifyMessageU()

static void AnyCAD.Foundation.DialogUtil.NotifyMessageU ( string title,
string content )
static

通知消息对话框

参数
title标题
contentUNICODE

◆ OpenFileDialog()

static Path AnyCAD.Foundation.DialogUtil.OpenFileDialog ( string title,
StringList filter )
static

打开文件对话框

参数
title标题
filter文件过滤条件, 如{ "CAD Files (.igs .iges .stp .step)", "*.igs *.iges *.stp *.step" }
返回
Path如果为空,则打开失败

◆ OpenFilesDialog()

static PathList AnyCAD.Foundation.DialogUtil.OpenFilesDialog ( string title,
StringList filter )
static

打开多个文件对话框

参数
title标题
filter文件过滤条件, 如{ "CAD Files (.igs .iges .stp .step)", "*.igs *.iges *.stp *.step" }
返回
打开的文件路径

◆ OpenFolderDialog()

static Path AnyCAD.Foundation.DialogUtil.OpenFolderDialog ( string title)
static

打开文件夹对话框

参数
title标题
返回
Path如果为空,则打开失败

◆ SaveFileDialog()

static Path AnyCAD.Foundation.DialogUtil.SaveFileDialog ( string title,
string fileName,
StringList filter )
static

保存文件对话框

参数
title标题
fileName文件名称
filter文件类型过滤器,如{ "CAD Files (.igs .iges .stp .step)", "*.igs *.iges *.stp *.step" }
返回
Path为空则打开失败

◆ ShowMessageBox()

static bool AnyCAD.Foundation.DialogUtil.ShowMessageBox ( string title,
string content )
static

显示消息对话框

参数
title标题
content内容UTF8
返回
是否ok

◆ ShowMessageBoxU()

static bool AnyCAD.Foundation.DialogUtil.ShowMessageBoxU ( string title,
string content )
static

显示消息对话框

参数
title标题
content内容UNICODE
返回
是否ok

◆ ShowWarningBox()

static bool AnyCAD.Foundation.DialogUtil.ShowWarningBox ( string title,
string content )
static

显示消息对话框

参数
title标题
content内容UTF8
返回
是否ok

◆ ShowWarningBoxU()

static bool AnyCAD.Foundation.DialogUtil.ShowWarningBoxU ( string title,
string content )
static

显示消息对话框

参数
title标题
content内容UNICODE
返回
是否ok