-
C# 为文字创建渐变色的下划线
C# 为文字创建渐变色的下划线,放大后还是很漂亮的,下划线变成了点状的,而且是颜色是渐变的,下面介绍实现这一功能的代码,给字符串创建渐变色下划线,核心代码如下:
TextDecoration MyUnderline = new TextDecoration();
Pen MyPen = new Pen();
MyPen.Brush = new LinearGradientBrush(Colors.Green,
Colors.Blue, new Point(0, 0.5), new Point(1, 0.5));
MyPen.Brush.Opacity = 0.5;
MyPen.Thickness = 1.5;
MyPen.DashStyle = DashStyles.Dash;
MyUnderline.Pen = MyPen;
MyUnderline.PenThicknessUnit = TextDecorationUnit.FontRecommended;
TextDecorationCollection MyCollection = new TextDecorationCollection();
MyCollection.Add(MyUnderline);
this.textBlock1.Text = "中华人民共和国";//自定义要显示下划线的文字
this.textBlock1.FontSize = 48;
this.textBlock1.TextDecorations = MyCollection;
需要请下载完整源码。运行效果图如下。
- 2022-01-22 05:14:06下载
- 积分:1
-
hitmiss.Designer
Windows Service 用.NET编写自定义服务实例代码(Writing Custom Service Instance Code with. NET in Windows Service)
- 2020-06-25 11:20:01下载
- 积分:1
-
好用档案管理软件
好用电子档案管理系统是一款适用于多岗位的电子档案管理软件,好用电子档案管理系统操作简单,软件体积小,功能强大,能够帮助用户轻松管理电子文档,同时好用电子档案管理系统还有着很多特色的功能,是档案管理的有利助手。(Effective use of electronic archives management system is an electronic archives management software suitable for multiple posts. Effective use of electronic archives management system is simple to operate, small software volume, powerful, can help users easily manage electronic documents, while Effective use of electronic archives management system also has many unique functions, is archives management. A helpful assistant.)
- 2020-06-23 22:40:01下载
- 积分:1
-
ArcGIS Engine中MapControl的一个例子
ArcGIS Engine中MapControl的一个例子-ArcGIS Engine MapControl an example
- 2022-11-30 05:30:04下载
- 积分:1
-
C8051F060-DAC
这个程序输出正弦和余弦波形 使用DAC硬这C8051F060单片机DAC0波形输出 和DAC1 Timer4中断更新的输出DAC.Timer4 ISR的 然后导致了DACs计算的输出,这是下一个中断。 输出波形的频率设定的# define <频率>。 实现定义的精确输出频率<频率>,一个 /使用外部晶体。(This program outputs sine and cosine waveforms using the hardware DACs
// on the C8051F06x microcontroller. The waveforms are output on pins DAC0
// and DAC1.
//
// The output of the DAC is updated upon a Timer4 interrupt. The Timer4 ISR
// then calculates the output of the DACs for the next interrupt.
//
// The frequency of the output waveforms is set by the#define <FREQUENCY>.
// To achieve the exact output frequency defined by <FREQUENCY>, an
// external crystal should be used.)
- 2014-07-03 19:05:12下载
- 积分:1
-
GLCM-OpenCV
说明: 提取图像的灰度共生矩阵,计算整幅图像的纹理特征值图像。c++(Extracting gray level co-occurrence matrix of image)
- 2021-03-09 16:39:28下载
- 积分:1
-
TPHeM_CIV_Andre_Ciro
TP Heuristica e Metaheuristica - Conjunto Independente de Vertice com GRASP
- 2014-02-28 14:27:25下载
- 积分:1
-
FOR循环的延时函数
这是自己在STC单片机中写的关于FOR循环实现延时的程序,并且经过逻辑分析仪分析,得到了验证。可以被用来拿到相关的地方做延时子程序使用。
- 2022-05-27 02:42:47下载
- 积分:1
-
这是一个颜色中国象棋的软件
使用了GDI+绘图绘制棋盘,使用图片控件作为棋子使用。可以直接使用,比较适合给C#的初学者用于练习使用。
- 2023-04-11 15:20:10下载
- 积分:1
-
classes can be imported to the academic performance of students and other inform...
可以输入班级里学生的成绩和其他信息,便于管理-classes can be imported to the academic performance of students and other information to facilitate management
- 2022-03-06 20:28:24下载
- 积分:1