ExcelDna.CellAddress
1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ExcelDna.CellAddress --version 1.0.1
NuGet\Install-Package ExcelDna.CellAddress -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ExcelDna.CellAddress" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ExcelDna.CellAddress --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ExcelDna.CellAddress, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ExcelDna.CellAddress as a Cake Addin #addin nuget:?package=ExcelDna.CellAddress&version=1.0.1 // Install ExcelDna.CellAddress as a Cake Tool #tool nuget:?package=ExcelDna.CellAddress&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ExcelDna.CellAddress
Excel Range Warpper using C#
Excel Range Com 对象和 ExcelDna.ExcelReference 都需要Excel 作为运行环境才能使用, 如果需要在其他环境使用单元格地址,那么你需要一个 可以离线使用的版本。 完成基本的单元格地址空间计算,同时还能在连线时直接访问 Excel 对象。
使用方式
PS> Install-Package ExcelDna.ExcelAddress
对象构造
- 字符串转换为单元格地址
//单个单元格
var cell = CellAddress.Parse("Sheet 1!A1")
//单元格范围
var range = CellAddress.Parse("Sheet 1!A1:F4")
//R1C1 格式
var rangeR1C1 = CellAddress.Parse("Sheet 1!R1C1:R4C4")
- Range 对象构造
Range range;
var cell = new CellAddress(range)
- ExcelDna Reference 对象构造
ExcelReference range;
var cell = new CellAddress(range)
- 隐式转换
var cell = (CellAddress)"A1"
扩展方法
GetValue
获取地址引用单元格 的数据 支持泛型方法
SetValue
向 地址引用单元格 写入数据
HasFormula
地址所在单元格是否包含公式
SetFormula
设置公式
单元格区域 内部单元格遍历方法
GetCells
根据索引返回区域内部的第n个单元格
Offset
计算给定单元格地址的偏移。返回的区域和原始区域大小相同
Min
两个/多个单元格地址比较大小, 右下方较大
Max
两个/多个单元格地址中最大地址
GetRange
计算多个单元格地址所占用的区域
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 is compatible. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.0
- ExcelDna.Integration (>= 0.34.6)
- Microsoft.Office.Interop.Excel (>= 12.0.0)
-
.NETFramework 4.5.1
- ExcelDna.Integration (>= 0.34.6)
- Microsoft.Office.Interop.Excel (>= 12.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.