摘要: 主要有几种:1 System.Array类(一个简单的数组)2 System.Collections.ArrayList类 先看段代码:View Code 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Collections; 6 namespace 使用集合 7 { 8 public abstract class Animal 9 {10 protected string name;11 public Animal(str 阅读全文
posted @ 2011-03-19 11:07 师士 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 先看一下GeoDatabase核心结构模型图: 1 工作空间工厂WorkspaceFactory对象 WorkspaceFactory是GeoDatabase的入口,是一个抽象类,拥有很多子类,例如SdeWorkspaceFactory, AccessWorkspaceFactory, ShapfileWorkspaceFactory CadWorkspaceFactory等 IWorkspaceFactory接口定义了所有工作空间对象的一般属性和方法 public IWorkspaceName Create (string parentDirectory,string Name,IProp. 阅读全文
posted @ 2011-03-18 00:27 师士 阅读(3122) 评论(1) 推荐(2) 编辑
摘要: 文档对象主要由IMapdocument和IMxdContents接口完成的。IMapDocument定义了操作和管理文档对象的方法和属性,包括读、写和保存一个文档文件(*.mxd)。 public void ReplaceContents (IMxdContents pObject);保存修改; public void Save (bool bUseRelativePaths,bool bCreateThumnbail); public void SaveAs (string sDocument,bool bUseRelativePaths,bool bCreateThumnbail);IM. 阅读全文
posted @ 2011-03-16 19:47 师士 阅读(2107) 评论(0) 推荐(1) 编辑
摘要: AE中绘制图形元素的方法Element元素对象是一个非常庞杂的对象集合,主要分为两大部分:图形元素(Graphic Element)和框架元素(Frame Element);图形元素包括GroupElement、MarkerElement、LineElement、TextElement、DataElement、PictureElement、和FillShapeElement等对象,它们都是作为图形的形式而存在的。IElement是所有图形元素和框架元素都实现的接口,它可以确定元素的Geometry属性,Element是一个抽象类,IElement和ILineElement、ITextEleme 阅读全文
posted @ 2011-03-16 11:14 师士 阅读(5802) 评论(11) 推荐(1) 编辑