Como fijar DefaultValue a propiedad de tipo System.Drawing.Fon t?

26/08/2005 - 15:03 por Alvaro E. Gonzalez V. | Informe spam
Buenos Dias...

En una clase tengo definida la siguiente propiedad:

public System.Drawing.Font CaptionFont
{
get{return this.caption.Font;}
set
{
this.caption.Font = value;
this.SetLocationCaption();
}
}

Quiero establecer el valor predeterminado (DefaultValue()) pero no se cual es la sintaxis en estos
casos.



Alvaro.

Preguntas similare

Leer las respuestas

#1 Octavio Hernandez
26/08/2005 - 18:12 | Informe spam
Alvaro,

Usa: [DefaultValue(typeof(Font),"Arial, 10pt")]

Slds - Octavio

"Alvaro E. Gonzalez V." escribió en el mensaje
news:%
Buenos Dias...

En una clase tengo definida la siguiente propiedad:

public System.Drawing.Font CaptionFont
{
get{return this.caption.Font;}
set
{
this.caption.Font = value;
this.SetLocationCaption();
}
}

Quiero establecer el valor predeterminado (DefaultValue()) pero no se cual
es la sintaxis en estos
casos.



Alvaro.
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida