Class SelectDirectoryEditorAttribute
- Namespace
- OFT.Attributes.Editors
- Assembly
- OFT.Attributes.dll
Edits a string setting as a folder path with a button that opens a folder dialog.
[AttributeUsage(AttributeTargets.Property)]
public class SelectDirectoryEditorAttribute : Attribute
- Inheritance
-
objectAttributeSelectDirectoryEditorAttribute
- Extension Methods
Constructors
SelectDirectoryEditorAttribute()
Initializes the editor.
public SelectDirectoryEditorAttribute()
SelectDirectoryEditorAttribute(SpecialFolder)
Initializes an editor whose dialog opens in a system folder.
public SelectDirectoryEditorAttribute(Environment.SpecialFolder initialSpecialFolder)
Parameters
initialSpecialFolderEnvironment.SpecialFolderThe system folder the dialog opens in.
Properties
InitialSpecialFolder
Gets the system folder the dialog opens in, when set through the constructor.
public Environment.SpecialFolder? InitialSpecialFolder { get; }
Property Value
- Environment.SpecialFolder?
IsTextEditable
Gets or sets a value indicating whether the path can also be typed; true by default.
public bool IsTextEditable { get; set; }
Property Value
- bool
ShowNewFolderButton
Gets or sets a value indicating whether the dialog offers to create a new folder.
public bool ShowNewFolderButton { get; set; }
Property Value
- bool