自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 如果用selectNodes方法搜索节点时,源文件中的命名空间默认命名空间的方法

源文件 books.xml<?xml version="1.0" encoding="utf-8"?> The Autobiography of Benjamin Franklin Benjamin Franklin price < 8.99 The Confidence Man Herman Melville 11.99 Th

2020-09-23 13:18:04 402

原创 2020-09-22

XmlDocument xmlDoc = new xmlDocument();xmlDoc,LoadXml(" some value");XmlNode node1 = xmlDoc.CreateElement(“price”);node1.InnerText =“price”;xmlDoc.DocumentElement.Appendchild(node1);DocuElement 指的是xml的根节点,只能有一个XmlNode node2= xmlDoc.CreateComment(“pr

2020-09-22 13:37:25 73

原创 chart出现的问题

在chart的属性中有两个重要的属性一个是ChartAreas ,另一个是Series其中如果要清除当前绘制的图表时仅仅使用this.chart1.ChartAreas.Clear();会提示出现“CharAreaCollection”中找不到名为“C1”的图标元素,其中“C1”是我定义的一个ChartArea的名称,如下图所示:有两种方式解决,第一种this.chart1.ChartAreas.Clear();ChartArea chartArea2 = new ChartArea(“C1”)

2020-09-09 14:48:01 1739

原创 Color.FromArgb(Int32, Int32, Int32, Int32)

其中第一个int32 表示的是不透明度0-255,颜色逐渐变深,int32位参数的取值范围0-255,(虽然是32位但是只有八位的长度)

2020-09-07 10:08:18 366

原创 panel的panel事件中的e.graphics.DrawLine()

private void panel1_Paint(object sender, PaintEventArgs e){Panel pl = (Panel)sender;Pen mpen = new Pen(Color.Red);mpen.Width = 1;e.Graphics.DrawLine(mpen, new Point(0, 0), new Point(0 ,pl.Height));e.Graphics.DrawLine(mpen, new Point(0, 0), new Point(

2020-09-03 09:07:01 441

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除