編輯

共用方式為


Range.Address[Object, Object, XlReferenceStyle, Object, Object] Property

Definition

Returns the range reference.

public:
 property System::String ^ Address[System::Object ^, System::Object ^, Microsoft::Office::Interop::Excel::XlReferenceStyle, System::Object ^, System::Object ^] { System::String ^ get(System::Object ^ RowAbsolute, System::Object ^ ColumnAbsolute, Microsoft::Office::Interop::Excel::XlReferenceStyle ReferenceStyle, System::Object ^ External, System::Object ^ RelativeTo); };
public string Address[object RowAbsolute, object ColumnAbsolute, Microsoft.Office.Interop.Excel.XlReferenceStyle ReferenceStyle = Microsoft.Office.Interop.Excel.XlReferenceStyle.xlA1, object External, object RelativeTo] { get; }
Public ReadOnly Property Address(Optional RowAbsolute As Object, Optional ColumnAbsolute As Object, Optional ReferenceStyle As XlReferenceStyle = Microsoft.Office.Interop.Excel.XlReferenceStyle.xlA1, Optional External As Object, Optional RelativeTo As Object) As String

Parameters

RowAbsolute
Object

Optional Object. True to return the row part of the reference as an absolute reference. The default value is True.

ColumnAbsolute
Object

Optional Object. True to return the column part of the reference as an absolute reference. The default value is True.

ReferenceStyle
XlReferenceStyle

Optional XlReferenceStyle.

External
Object

Optional Object. True to return an external reference; False to return a local reference. The default value is False.

RelativeTo
Object

Optional Object. If RowAbsolute and ColumnAbsolute are False, and ReferenceStyle is xlR1C1, you must include a starting point for the relative reference. This argument is a Range object that defines the starting point.

Property Value

Remarks

If the reference contains more than one cell, RowAbsolute and ColumnAbsolute apply to all rows and columns.

Applies to