c# brush 如何赋值
this._brush=System.Drawing.Brushes.Black;这样赋值可以吗?>?brush{Color={RGB=0x0}}[System.Draw...
this._brush=System.Drawing.Brushes.Black;这样赋值可以吗?
>? brush
{Color={RGB=0x0}}
[System.Drawing.SolidBrush]: {Color={RGB=0x0}}
System.MarshalByRefObject: {System.Drawing.SolidBrush}
nativeBrush: 65174184
>
查看命令视窗,结果对吗 展开
>? brush
{Color={RGB=0x0}}
[System.Drawing.SolidBrush]: {Color={RGB=0x0}}
System.MarshalByRefObject: {System.Drawing.SolidBrush}
nativeBrush: 65174184
>
查看命令视窗,结果对吗 展开
1个回答
2015-03-14
展开全部
控件的BorderBrush属性的值可以通过SetValue方法设置,例如this.TextBox.SetValue(TextBox.BorderBrushProperty, Colors.Black);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询