颜色为Param [英] Color as Param

查看:99
本文介绍了颜色为Param的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

public LabelMsg(System.Web.UI.WebControls.Label lblMsg,string strMensagem,

Color。???)

{

lblMsg.Text = strMensagem;

lblMsg.ForeColor = clrLabel。???

}


我需要给颜色作为参数,我应该使用哪种类型?

public LabelMsg(System.Web.UI.WebControls.Label lblMsg, string strMensagem,
Color.???)
{
lblMsg.Text = strMensagem;
lblMsg.ForeColor = clrLabel.???
}

I need to give the color as a param, wich type should i use ?

推荐答案

Daniel Groh写道:
Daniel Groh wrote:
public LabelMsg(System.Web .UI.WebControls.Label lblMsg,string strMensagem,
Color。???)
{
lblMsg.Text = strMensagem;
lblMsg.ForeColor = clrLabel。???
}

我需要将颜色作为参数给出,我应该使用哪种类型?
public LabelMsg(System.Web.UI.WebControls.Label lblMsg, string strMensagem,
Color.???)
{
lblMsg.Text = strMensagem;
lblMsg.ForeColor = clrLabel.???
}

I need to give the color as a param, wich type should i use ?



system.color?

JB


system.color ?
JB


Daniel Groh写道:
Daniel Groh wrote:
public LabelMsg(System.Web.UI.WebControls.Label lblMsg,string strMensagem ,
颜色。???)
{
lblMsg.Text = strMensagem;
lblMsg.ForeColor = clrLabel。???
}
public LabelMsg(System.Web.UI.WebControls.Label lblMsg, string strMensagem,
Color.???)
{
lblMsg.Text = strMensagem;
lblMsg.ForeColor = clrLabel.???
}

I need to give the color as a param, wich type should i use ?



system.color?

JB


system.color ?
JB


不...有System.Drawing.Color但它不作为参考!


如果我这样做


System.Drawing.Color myColor

myColor。(点)......


it ''向我展示了不解决我的textcolor问题的属性!


" John B" < JB ****** @ yahoo.com> escreveu na mensagem

news:42 *********************** @ news.sunsite.dk ...
No...there is System.Drawing.Color but it''s not working as a reference!

if i do

System.Drawing.Color myColor

myColor.(point)...

it''s showing to me properties that dont solve my probleb of textcolor!

"John B" <jb******@yahoo.com> escreveu na mensagem
news:42***********************@news.sunsite.dk...
Daniel Groh写道:
Daniel Groh wrote:
public LabelMsg(System.Web.UI.WebControls.Label lblMsg,string
strMensagem,Color。???)
{
lblMsg.Text = strMensagem;
lblMsg.ForeColor = clrLabel。???

我需要将颜色作为参数给出,我应该使用哪种类型?
public LabelMsg(System.Web.UI.WebControls.Label lblMsg, string
strMensagem, Color.???)
{
lblMsg.Text = strMensagem;
lblMsg.ForeColor = clrLabel.???
}

I need to give the color as a param, wich type should i use ?


system.color?
JB


system.color ?
JB



这篇关于颜色为Param的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆