[Flags()] and Property window
.NET (Core and Framework)
1
Posts
1
Posters
0
Views
1
Watching
-
Perhaps this is a stupid question, but I sought plenty and I didn't get to find. Imagine that there is an enumeration as the one that proceeds:
[Flags ()]
public enum AnyOptions
{
Option1 = 1,
Option2 = 2,
Option3 = 4
}Now there is a property in a specialization of System.Windows.Forms.TextBox
public class MyCustomTextBox: System.Windows.Forms.TextBox
{
private AnyOptions options = AnyOptions.Option1;\[Browsable(true)\] //this is the point!! public AnyOptions Options { get {return this.options;} set {this.options = value;} }
}
Question: As I do for this property to have a "normal" behavior in the properties window. I imagine that it is some editor type, I don´t know. Thanks in advance, Marcelo Palladino Brazil