Skip to content

OpenFolderDialog

Summary

Represents a common dialog box that allows the user to open one or more folders.

Signature

1
public class OpenFolderDialog

Namespace

cAlgo.API

Methods

ShowDialog (2)

ShowDialog (1 of 2)

Summary

Shows a file dialog, with the owner as the main Window

Signature

1
public FileDialogResult ShowDialog()

Return Value

FileDialogResult

ShowDialog (2 of 2)

Summary

Shows a file dialog, with the passed owner window.

Signature

1
public FileDialogResult ShowDialog(Window owner)

Parameters

Name Type Description
owner Window The window that owns the file dialog.

Return Value

FileDialogResult

Reset

Summary

Resets all dialog properties to their default values.

Signature

1
public void Reset()

Return Value

void

ResetInternal

Signature

1
private void ResetInternal()

Return Value

void

SetProperty

Signature

1
private void SetProperty(T& field, T value)

Parameters

Name Type Description
field T&
value T

Return Value

void

GetProperty

Signature

1
private T GetProperty(T& field)

Parameters

Name Type Description
field T&

Return Value

T

Properties

Title

Summary

Gets or sets a string shown in the title bar of the dialog.If this property is null, a localized default from the operatingsystem itself will be used.

Signature

1
public string Title {get; set;}

Return Value

string

InitialDirectory

Summary

Gets or sets the initial directory that is displayed by a file dialog.

Signature

1
public string InitialDirectory {get; set;}

Return Value

string

FolderName

Summary

Gets a string containing the full path of the folder selected in an open folder dialog.

Signature

1
public string FolderName {get;}

Return Value

string