vb.net - Color Property On Custom Attribute -
I have written a custom attribute and received the following color property that I want the user to point to the color property Should be enabled on a class attribute:
as the private _ColumnColor system. Drawing Caller Public Property as ColumnColor () system. Drawing Return the caller _ColumnColor End Set (Byval value.Drawing.Color as the system) _ColumnColor = value End Set End Property
I get the following error:
"Property or Field 'Column Coiler' has no valid attribute type
I will start with adding your property
& Lt; attributeUsage (AttributeTargets.Property) & gt; _ System like Private _ColumnColor.Downing Collar Public Property as ColumnColor () system. Get Color Return Return _ColumnColor En D set (IVV value as the system. Drawing.Color) _ColumnColor = value End Set End Property
Comments
Post a Comment