导航

上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 35 下一页

2011年4月21日

摘要: //--------------------------------------------------------- //IsReverse//X 轴的刻度值从高到低还是从低到高//MajorUnit//大刻度步长单位 //MaxAuto//根据输入数据自动设置刻度最大值//MinorStepAuto//是否自动设置小刻度步长 //MinorUnit//小刻度单位 //MajorUnit//大刻度步长单位 //Type//数据显示方式 //IsPenWidthScaled//图比例变化时候图表上的画笔的粗细是否跟着自动缩放//--------------------------------. 阅读全文

posted @ 2011-04-21 07:00 beeone 阅读(7698) 评论(0) 推荐(1) 编辑

2011年4月14日

摘要: C#中out , ref 和params的用法2009-07-16 21:01ref和out都对函数参数采用引用传递形式——不管是值类型参数还是引用类型参数,并且定义函数和调用函数时都必须显示生命该参数为ref/out形式。两者都可以使函数传回多个结果。两者区别:两种参数类型的设计思想不同,ref的目的在于将值类型参数当作引用型参数传递到函数,是函数的输入参数,并且在函数内部的任何改变也都将影响函数外部该参数的值;而out的目的在于获取函数的返回值,是输出参数,由函数内部计算得到的值再回传到函数外部,因此必须在函数内部对该参数赋值,这将冲掉函数外部的任何赋值,使得函数外部赋值毫无意义。表现为: 阅读全文

posted @ 2011-04-14 13:09 beeone 阅读(845) 评论(0) 推荐(0) 编辑

2011年4月13日

摘要: ArcMap配准图像>>>>>>>>>>>>>>>>>>>>>>>>一、对影像的校准和配准1.打开ArcMap,增加Georeferncing工具条。2.把需要进行纠正的影像增加到ArcMap中,会发现Georeferncing工具条中的工具被激活。3.在校正中我们需要知道一些特殊点的坐标。通过读图,我们知道坐标的点就是公里网格的交点,我们可以从图中均匀的取几个点。一般在实际中,这些点应该能够均匀分布。4.首先将Georeferncing工具条的Geo 阅读全文

posted @ 2011-04-13 05:19 beeone 阅读(4378) 评论(0) 推荐(0) 编辑

2011年4月11日

摘要: using System;using System.Data;class Program{ static void Main() {//// Get the DataTable.//DataTable table = GetTable();//// Use DataTable here with SQL, etc.// } /// <summary> /// This example method generates a DataTable. /// </summary> static DataTable GetTable() {//// Here we create 阅读全文

posted @ 2011-04-11 21:57 beeone 阅读(146) 评论(0) 推荐(0) 编辑

摘要: 阅读全文

posted @ 2011-04-11 21:56 beeone 阅读(283) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace DataTabelTestInXml{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } public static DataTable dt = new D 阅读全文

posted @ 2011-04-11 21:55 beeone 阅读(324) 评论(0) 推荐(0) 编辑

摘要: 循环语句是编程的基本语句,在C#中除了沿用C语言的循环语句外,还提供了foreach语句来实现循环。那么我要说的就是,在循环操作中尽量使用foreach语句来实现。 为了来更好地说明为什么要提倡使用foreach,用如下三种不同方式来编写循环语句。 int[] nArray = new int[100]; // Use "foreach" to loop array foreach( int i in nArray ) Debug.WriteLine( i.ToString() ); // Use "for" to loop array for( int 阅读全文

posted @ 2011-04-11 21:54 beeone 阅读(497) 评论(0) 推荐(0) 编辑

摘要: 注意:当Excel需要引用的时候请:项目--菜单 --- 添加引用 ---COM ---Microsoft Excel 11.0 Object Library --- 确定using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.IO;using System.Diagnostics;using System.Th 阅读全文

posted @ 2011-04-11 17:13 beeone 阅读(382) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.Text;using Word;using System.Data;using System.Collections;namespace Pixysoft.Office{ /// <summary> /// 支持创建、打开、保存、关闭文档 /// 支持页面设置 /// 支持普通文字输入设置 /// 支持表插入 /// 支持BookMark /// </summary> public class WordDocuments { private bool v 阅读全文

posted @ 2011-04-11 17:03 beeone 阅读(810) 评论(0) 推荐(0) 编辑

摘要: Excel操作类 /// <summary> /// Excel操作类 /// </summary> public class Excel { #region 私有属性 private _Application _oExcel = null; //Excel应用程序 private _Workbook _oBook = null; //Excel工作薄 private _Worksheet _oSheet = null; //Excel工作表 private bool _visible=false; //是否显示Excel程序 #endregion #region 公共 阅读全文

posted @ 2011-04-11 17:00 beeone 阅读(457) 评论(0) 推荐(0) 编辑

上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 35 下一页