FolderNameEditor.FolderBrowser 类

定义

表示一个对话框,用户可以通过该对话框选择文件夹。Represents a dialog box that allows the user to choose a folder. 此类不能被继承。This class cannot be inherited.

protected: ref class FolderNameEditor::FolderBrowser sealed : System::ComponentModel::Component
protected sealed class FolderNameEditor.FolderBrowser : System.ComponentModel.Component
Protected NotInheritable Class FolderNameEditor.FolderBrowser
Inherits Component
继承
FolderNameEditor.FolderBrowser

构造函数

FolderNameEditor.FolderBrowser()

初始化 FolderNameEditor.FolderBrowser 类的新实例。Initializes a new instance of the FolderNameEditor.FolderBrowser class.

属性

CanRaiseEvents

获取一个指示组件是否可以引发事件的值。Gets a value indicating whether the component can raise an event.

(继承自 Component)
Container

获取 IContainer,它包含 ComponentGets the IContainer that contains the Component.

(继承自 Component)
Description

获取或设置文件夹上方显示的说明。Gets or sets a description to show above the folders.

DesignMode

获取一个值,用以指示 Component 当前是否处于设计模式。Gets a value that indicates whether the Component is currently in design mode.

(继承自 Component)
DirectoryPath

获取用户选取的文件夹的目录路径。Gets the directory path to the object the user picked.

Events

获取附加到此 Component 的事件处理程序的列表。Gets the list of event handlers that are attached to this Component.

(继承自 Component)
Site

获取或设置 ISiteComponentGets or sets the ISite of the Component.

(继承自 Component)
StartLocation

获取或设置根节点的起始位置。Gets or sets the start location of the root node.

Style

浏览文件夹时文件夹浏览器将使用的样式。The styles the folder browser will use when browsing folders. 应为 FolderNameEditor.FolderBrowserStyles 枚举中的标志的组合。This should be a combination of flags from the FolderNameEditor.FolderBrowserStyles enumeration.

方法

CreateObjRef(Type)

创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(继承自 MarshalByRefObject)
Dispose()

释放 Component 使用的所有资源。Releases all resources used by the Component.

(继承自 Component)
Dispose(Boolean)

释放 Component 使用的非托管资源,并选择性地释放托管资源。Releases the unmanaged resources used by the Component and optionally releases the managed resources.

(继承自 Component)
Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetLifetimeService()

检索控制此实例的生存期策略的当前生存期服务对象。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(继承自 MarshalByRefObject)
GetService(Type)

返回一个对象,该对象表示由 Component 或它的 Container 提供的服务。Returns an object that represents a service provided by the Component or by its Container.

(继承自 Component)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
InitializeLifetimeService()

获取生存期服务对象来控制此实例的生存期策略。Obtains a lifetime service object to control the lifetime policy for this instance.

(继承自 MarshalByRefObject)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。Creates a shallow copy of the current MarshalByRefObject object.

(继承自 MarshalByRefObject)
ShowDialog()

显示文件夹浏览器对话框。Shows the folder browser dialog.

ShowDialog(IWin32Window)

显示具有指定所有者的文件夹浏览器对话框。Shows the folder browser dialog with the specified owner.

ToString()

返回包含 String 的名称的 Component(如果有)。Returns a String containing the name of the Component, if any. 不应重写此方法。This method should not be overridden.

(继承自 Component)

事件

Disposed

当通过调用 Dispose() 方法释放组件时发生。Occurs when the component is disposed by a call to the Dispose() method.

(继承自 Component)

适用于