FileDialog.AddExtension 属性

定义

获取或设置一个值,该值指示如果用户省略扩展名,文件对话框是否自动在文件名中添加扩展名。

public:
 property bool AddExtension { bool get(); void set(bool value); };
public bool AddExtension { get; [System.Security.SecurityCritical] set; }
public bool AddExtension { get; set; }
[<set: System.Security.SecurityCritical>]
member this.AddExtension : bool with get, set
member this.AddExtension : bool with get, set
Public Property AddExtension As Boolean

属性值

如果添加扩展名,则为 true;否则为 false。 默认值为 true

属性

适用于