资源简介
基于ArcObject与C#.NET的GIS应用开发(代码) 光盘代码
代码片段和文件信息
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using ESRI.ArcGIS.ADF.baseClasses;
using ESRI.ArcGIS.ADF.CATIDs;
using ESRI.ArcGIS.framework;
using ESRI.ArcGIS.ArcMapUI;
using ESRI.ArcGIS.esriSystem;
using System.Windows.Forms;
namespace ShortcutKey
{
///
/// Summary description for ShortcutKey_AddData.
///
[Guid(“eed9879b-8bde-4a16-899c-d9c737089bde“)]
[ClassInterface(ClassInterfaceType.None)]
[ProgId(“ShortcutKey.ShortcutKey_AddData“)]
public sealed class ShortcutKey_AddData : baseCommand
{
#region COM Registration Function(s)
[ComRegisterFunction()]
[ComVisible(false)]
static void RegisterFunction(Type registerType)
{
// Required for ArcGIS Component Category Registrar support
ArcGISCategoryRegistration(registerType);
//
// TODO: Add any COM registration code here
//
}
[ComUnregisterFunction()]
[ComVisible(false)]
static void UnregisterFunction(Type registerType)
{
// Required for ArcGIS Component Category Registrar support
ArcGISCategoryUnregistration(registerType);
//
// TODO: Add any COM unregistration code here
//
}
#region ArcGIS Component Category Registrar generated code
///
/// Required method for ArcGIS Component Category registration -
/// Do not modify the contents of this method with the code editor.
///
private static void ArcGISCategoryRegistration(Type registerType)
{
string regKey = string.Format(“HKEY_CLASSES_ROOT\\CLSID\\{{{0}}}“ registerType.GUID);
MxCommands.Register(regKey);
}
///
/// Required method for ArcGIS Component Category unregistration -
/// Do not modify the contents of this method with the code editor.
///
private static void ArcGISCategoryUnregistration(Type registerType)
{
string regKey = string.Format(“HKEY_CLASSES_ROOT\\CLSID\\{{{0}}}“ registerType.GUID);
MxCommands.Unregister(regKey);
}
#endregion
#endregion
private IApplication m_application;
public ShortcutKey_AddData()
{
//
// TODO: Define values for the public properties
//
base.m_category = “ShortcutKey“; //localizable text
base.m_caption = “ShortcutKey_AddData“; //localizable text
base.m_message = “ShortcutKey_AddData“; //localizable text
base.m_toolTip = “ShortcutKey_AddData“; //localizable text
base.m_name = “ShortcutKey_AddData“; //unique id non-localizable (e.g. “MyCategory_ArcMapCommand“)
try
{
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
I.A.... 6143 2013-11-21 18:54 基于Arcob
I.A.... 6656 2013-11-21 18:54 基于Arcob
I.A.... 15872 2013-11-21 18:54 基于Arcob
I.A.... 1580 2013-11-21 18:54 基于Arcob
I.A.SH. 8 2014-04-01 16:32 基于Arcob
I.A.SH. 8 2014-04-01 16:32 基于Arcob
I.A.SH. 8 2014-04-01 16:32 基于Arcob
I.A.... 685 2013-11-21 18:54 基于Arcob
I.A.... 2262 2013-11-21 18:54 基于Arcob
I.A.... 6656 2013-11-21 18:54 基于Arcob
I.A.... 15872 2013-11-21 18:54 基于Arcob
I.A.... 6433 2013-11-21 18:54 基于Arcob
I.A.... 730 2013-11-21 18:54 基于Arcob
I.A.SH. 8 2014-04-01 16:32 基于Arcob
I.A.SH. 8 2014-04-01 16:32 基于Arcob
I.A.... 643 2013-11-21 18:54 基于Arcob
I.A.SH. 8 2014-04-01 16:32 基于Arcob
I.A.... 1402 2013-11-21 18:54 基于Arcob
I.A.SH. 8 2014-04-01 16:32 基于Arcob
I.A.... 246 2013-11-21 18:54 基于Arcob
I.A.... 5123 2013-11-21 18:54 基于Arcob
I.A.SH. 8 2014-04-01 16:32 基于Arcob
I.A.... 8033 2013-11-21 18:54 基于Arcob
I.A.... 452 2013-11-21 18:54 基于Arcob
I.A.... 13824 2013-11-21 18:54 基于Arcob
I.A.... 34304 2013-11-21 18:54 基于Arcob
I.A.... 2364 2013-11-21 18:54 基于Arcob
I.A.SH. 8 2014-04-01 16:32 基于Arcob
I.A.SH. 8 2014-04-01 16:32 基于Arcob
I.A.SH. 8 2014-04-01 16:32 基于Arcob
............此处省略3648个文件信息
评论
共有 条评论