简体   繁体   English

如何在C#中将K标签的颜色更改为红色

[英]How to change Krypton label's color to red in C#

我在UI上使用的是tool工具包,但是我无法将a标签的颜色更改为红色,有人知道吗?

I don't use the toolkit, but I'd assume they extend the regular Label class in .NET. 我不使用该工具包,但我假设它们扩展了.NET中的常规Label类。 I know the .NET Label use this property, which is extended from the Control class: 我知道.NET Label使用此属性,该属性是从Control类扩展的:

public virtual Color BackColor { get; set; }

Right click the Krypton label object and click Go To Definition. 右键单击“ rypto”标签对象,然后单击“转到定义”。 You want to look for a property with a Color object. 您要查找带有Color对象的属性。 They should also have a summary of what the property does. 他们还应该概述该物业的用途。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM