Skip to content

FolderPathAttribute

Namespace: SideXP.Core | Inherits from: PropertyAttribute

public class FolderPathAttribute : PropertyAttribute

Draws a text field with a "browse" button to select a folder path.

Constructors

FolderPathAttribute()

public FolderPathAttribute()

FolderPathAttribute(string, bool)

public FolderPathAttribute(string title, bool allowExternal = false)

Draws a text field with a "browse" button to select a folder path.

Parameters

  • title
  • allowExternal

Properties

Title

public string Title

The title of the "open folder" panel.

DefaultName

public string DefaultName

The default name of the directory to select.

AllowExternal

public bool AllowExternal

If enabled, allow the user to select a folder outside of the current project's directory.