Design-Time Attribute for a Font Array in Visual Studio 2005
Hi,
I have a custom Button control, whick contains a Font[] Array-
Property. This control is for .NET CF 1.x, so I have add a Design-Time
Attribute to the .xmta File for a Visual Studio 2005 Designer support.
public Font [] Fonts
{
get
{
return myFonts;
}
set
{
myFonts = value;
}
}
When I want to add a font in the designer using the standard VS2005
Font Collection Editor, I get an error: "Constructor on type
'System.Drawing.Font' not found."
It's obvious that the Font class doesn't have a standard constructor.
So how can I tell VS2005 not to use the standard constructor from Font
class? Instead of the standard constructor VS2005 should use something
like that:
public Font ( string familyName, float emSize, FontStyle style)
thx in advice,
Lin
Date:Fri, 13 Jul 2007 10:29:11 -0000
Author:
|