当前位置: 首页>>代码示例>>C#>>正文


C# Microsoft.Office.Interop.Excel.get_Address方法代码示例

本文整理汇总了C#中Microsoft.Office.Interop.Excel.get_Address方法的典型用法代码示例。如果您正苦于以下问题:C# Microsoft.Office.Interop.Excel.get_Address方法的具体用法?C# Microsoft.Office.Interop.Excel.get_Address怎么用?C# Microsoft.Office.Interop.Excel.get_Address使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Microsoft.Office.Interop.Excel的用法示例。


在下文中一共展示了Microsoft.Office.Interop.Excel.get_Address方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: xlWorkSheet_Change

 void xlWorkSheet_Change(Excel.Range Target)
 {
     //Console.WriteLine("{0}:{1} -> {2}", Target.Row, Target.Column, Target.Value2.ToString());
     //Console.WriteLine(Target.Count);
     //Called when a cell or cells on a worksheet are changed.
     Debug.WriteLine("Delegate: You Changed Cells " +
        Target.get_Address(Missing.Value, Missing.Value,
        Excel.XlReferenceStyle.xlA1, Missing.Value, Missing.Value) +
        " on " + Target.Worksheet.Name);
 }
开发者ID:warewer76534525,项目名称:br927yoijdsklu73,代码行数:10,代码来源:When_detect_change_in_excel.cs

示例2: Change

 public static void Change(Excel.Range target)
 {
     string address = target.get_Address((object) false, (object) false, Excel.XlReferenceStyle.xlA1, (object) false, Type.Missing);
     string key = Globals.Workbooks[(Excel.Workbook) target.Worksheet.Parent] + "." + Globals.Worksheets[(Excel.Worksheet) target.Parent] + "." + address;
     string formula = Globals.FixFormula((string) target.Formula);
     if(formula.StartsWith("CONSTRAIN")) {
         formula = formula.Substring(11, formula.Length - 13);
         formula = "CONSTRAIN(" + formula + ")";
     }
     Globals.ConstraintSolver.Change(key, formula);
 }
开发者ID:samplet,项目名称:CreamCheese,代码行数:11,代码来源:ChangeWatcher.cs

示例3: getSelectedRangeAddress

 protected string getSelectedRangeAddress(Excel.Range r)
 {
     return ((Excel.Worksheet)r.Parent).Name + "!" + r.get_Address(Type.Missing, Type.Missing, Excel.XlReferenceStyle.xlA1, Type.Missing, Type.Missing);
 }
开发者ID:NCIP,项目名称:cadsr-cgmdr,代码行数:4,代码来源:ExcelQueryServiceControl.cs

示例4: CellsChange

 private void CellsChange(Excel.Range Target)
 {
     //This is called when any cell on a worksheet is changed.
     Debug.WriteLine("Delegate: You Changed Cells " +
        Target.get_Address(Missing.Value, Missing.Value,
        Excel.XlReferenceStyle.xlA1, Missing.Value, Missing.Value) +
        " on " + Target.Worksheet.Name);
 }
开发者ID:LouisCDubois,项目名称:XlCodeExtractor,代码行数:8,代码来源:CodeExtractor.cs


注:本文中的Microsoft.Office.Interop.Excel.get_Address方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。