Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DefaultValue for Tab Control ItemSize
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01057791
Message ID:
01058254
Views:
15
Hi,

>Hurrah!
Looks like you got there ! :-)


>
><DefaultValue(GetType(System.Drawing.Size), "0, 0")> Public Shadows Property ItemSize() As System.Drawing.Size
>            Get
>                Return MyBase.ItemSize
>            End Get
>            Set(ByVal Value As System.Drawing.Size)
>                MyBase.ItemSize = Value
>            End Set
>        End Property
>
>
>Viv you lost me a little here... "How do you determine the valid string value for the converter - is it documented anywhere? I know that in this case it's probably reasonably obvious - just wondering about the more general case."

See Neil's reply. For the DefaultValue() to work you would need to know the correct format for the string value (i.e. "0,0" in this case) which is, as Neil says, guessable for a size structure - but the string format could be much more complex for other type conversions...

Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform