Prompts the user to select a folder. This class cannot be inherited.
| Windows | macOS | Gnome | |
|---|---|---|---|
| Light |
|
|
|
| Dark |
|
|
|
Public Constructors | |
| folder_browser_dialog () | |
| Initializes a new instance of the folder_browser_dialog class. | |
Public Properties | |
| auto | auto_upgrade_enable () const noexcept -> bool |
| Gets a value that indicates whether the dialog will be automatically upgraded to enable new features. | |
| auto | auto_upgrade_enable (bool value) -> folder_browser_dialog & |
| Sets a value that indicates whether the dialog will be automatically upgraded to enable new features. | |
| auto | description () const noexcept -> const xtd::string & |
| Gets the descriptive text displayed above the tree view control in the dialog box. | |
| auto | description (const xtd::string &value) -> folder_browser_dialog & |
| Sets the descriptive text displayed above the tree view control in the dialog box. | |
| auto | root_folder () const noexcept -> xtd::environment::special_folder |
| Gets the root folder where the browsing starts from. | |
| auto | root_folder (xtd::environment::special_folder value) -> folder_browser_dialog & |
| Sets the root folder where the browsing starts from. | |
| auto | selected_path () const noexcept -> const xtd::string & |
| Gets the path selected by the user. | |
| auto | selected_path (const xtd::string &value) -> folder_browser_dialog & |
| Sets the path selected by the user. | |
| bool | show_new_folder_button () const noexcept |
| Gets a value indicating whether the New Folder button appears in the folder browser dialog box. | |
| auto | show_new_folder_button (bool value) -> folder_browser_dialog & |
| Sets a value indicating whether the New Folder button appears in the folder browser dialog box. | |
Public Methods | |
| auto | reset () noexcept -> void override |
| Resets all options to their default values, the last selected color to black, and the custom colors to their default values. | |
Protected Methods | |
| auto | run_dialog (xtd::intptr owner) -> bool override |
| When overridden in a derived class, specifies a common dialog box. | |
| auto | run_sheet (xtd::intptr owner) -> void override |
| When overridden in a derived class, specifies a common dialog box. | |
Additional Inherited Members | |
| xtd::event< common_dialog, xtd::forms::help_event_handler > | help_request |
| Occurs when the user clicks the Help button on a common dialog box. | |
| xtd::event< common_dialog, xtd::forms::dialog_closed_event_handler > | dialog_closed |
| Occurs when the user close a common dialog box with dialog close button or other dialog buttons. | |
| common_dialog () | |
| Initializes a new instance of the common_dialog class. | |
| auto | dialog_result () const noexcept -> xtd::forms::dialog_result |
| Gets async dialog_result result after dialog box is closing. | |
| auto | tag () const noexcept -> const xtd::any_object & |
| Gets an object that contains data about the control. | |
| auto | tag (const xtd::any_object &value) -> common_dialog & |
| Sets an object that contains data about the control. | |
| auto | show_dialog () -> xtd::forms::dialog_result |
| Runs a common dialog box with a default owner. | |
| auto | show_dialog (const iwin32_window &owner) -> xtd::forms::dialog_result |
| Runs a common dialog box with the specified owner. | |
| auto | show_sheet (const iwin32_window &owner) -> void |
| Runs a common dialog box with the specified owner. | |
| auto | show_sheet_dialog (const iwin32_window &owner) -> xtd::forms::dialog_result |
| Runs a common dialog box with the specified owner. | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | equals (const object &obj) const noexcept -> bool |
| Determines whether the specified object is equal to the current object. | |
| virtual auto | get_hash_code () const noexcept -> xtd::usize |
| Serves as a hash function for a particular type. | |
| virtual auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| virtual auto | to_string () const -> xtd::string |
| Returns a xtd::string that represents the current object. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
| virtual auto | on_dialog_closed (const xtd::forms::dialog_closed_event_args &e) -> void |
| Raises the common_dialog::dialog_close event. | |
| virtual auto | on_help_request (xtd::forms::help_event_args &e) -> void |
| Raises the common_dialog::help_request event. | |
| auto | set_dialog_result (xtd::forms::dialog_result value) -> void |
| Sets async dialog_result result after dialog box is closing. | |
| component () | |
| Initialises a new instance of the component class. | |
| virtual auto | can_raise_events () const noexcept -> bool |
| Gets a value indicating whether the component can raise an event. | |
| auto | design_mode () const noexcept -> bool |
| Gets a value that indicates whether the component is currently in design mode. | |
| xtd::forms::folder_browser_dialog::folder_browser_dialog | ( | ) |
Initializes a new instance of the folder_browser_dialog class.
|
nodiscardnoexcept |
Gets a value that indicates whether the dialog will be automatically upgraded to enable new features.
| auto xtd::forms::folder_browser_dialog::auto_upgrade_enable | ( | bool | value | ) | -> folder_browser_dialog & |
Sets a value that indicates whether the dialog will be automatically upgraded to enable new features.
| value | true if the the dialog will be automatically upgraded to enable new features; otherwise, false. The default value is true. |
|
nodiscardnoexcept |
Gets the descriptive text displayed above the tree view control in the dialog box.
| auto xtd::forms::folder_browser_dialog::description | ( | const xtd::string & | value | ) | -> folder_browser_dialog & |
Sets the descriptive text displayed above the tree view control in the dialog box.
| value | The description to display. The default is an empty string (""). |
|
nodiscardnoexcept |
Gets the root folder where the browsing starts from.
| auto xtd::forms::folder_browser_dialog::root_folder | ( | xtd::environment::special_folder | value | ) | -> folder_browser_dialog & |
Sets the root folder where the browsing starts from.
| value | One of the environment::special_folder values. The default is environment::special_folder::desktop. |
|
nodiscardnoexcept |
Gets the path selected by the user.
| auto xtd::forms::folder_browser_dialog::selected_path | ( | const xtd::string & | value | ) | -> folder_browser_dialog & |
Sets the path selected by the user.
| value | The path of the folder first selected in the dialog box or the last folder selected by the user. The default is an empty string (""). |
|
nodiscardnoexcept |
Gets a value indicating whether the New Folder button appears in the folder browser dialog box.
| auto xtd::forms::folder_browser_dialog::show_new_folder_button | ( | bool | value | ) | -> folder_browser_dialog & |
Sets a value indicating whether the New Folder button appears in the folder browser dialog box.
| value | true if the New Folder button is shown in the dialog box; otherwise, false. The default is true. |
|
overridevirtualnoexcept |
Resets all options to their default values, the last selected color to black, and the custom colors to their default values.
Implements xtd::forms::common_dialog.
|
overrideprotectedvirtual |
When overridden in a derived class, specifies a common dialog box.
| owner | A value that represents the window handle of the owner window for the common dialog box. |
Implements xtd::forms::common_dialog.
|
overrideprotectedvirtual |
When overridden in a derived class, specifies a common dialog box.
| owner | A value that represents the window handle of the owner window for the common dialog box. |
Implements xtd::forms::common_dialog.