[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IRange.GetAddress

GetAddress Method

GetAddress(bool, bool, ReferenceStyle, IRange)

返回一个string 值,表示范围引用。 如果所有参数都被省略,返回值等于Address 属性。

Declaration
string GetAddress(bool rowAbsolute = true, bool columnAbsolute = true, ReferenceStyle referenceStyle = ReferenceStyle.A1, IRange relativeTo = null)
Parameters
Type Name Description
bool rowAbsolute

设为True 以将引用中的行部分作为绝对引用返回。

bool columnAbsolute

设为True 以将引用中的列部分作为绝对引用返回。

ReferenceStyle referenceStyle

引用样式。

IRange relativeTo

如果 RowAbsolute 和 ColumnAbsolute 均为 False , 并且 ReferenceStyle 是 R1C1, 则定义相对引用的起始点。 默认引用是 $A$1。

Returns
Type Description
string