G
Guest
Does anyone know how to initialize a DefaultPropertyAttribute for a
object-type property, for example if you want to set the default value of a
Font property to a particular font? E.g.:
<DefaultValue(...)> _
Public Property HeaderFont() As Font
Get
Return _headerFont
End Get
Set(ByVal value As Font)
_headerFont = value
End Set
End Property
....where I want to set the default value for the HeaderFont property to
something like Font("Arial", 16, FontStyle.Bold)
Many thanks.
object-type property, for example if you want to set the default value of a
Font property to a particular font? E.g.:
<DefaultValue(...)> _
Public Property HeaderFont() As Font
Get
Return _headerFont
End Get
Set(ByVal value As Font)
_headerFont = value
End Set
End Property
....where I want to set the default value for the HeaderFont property to
something like Font("Arial", 16, FontStyle.Bold)
Many thanks.