Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
The property is intended to be used with the following parameters.
The number of rows (positive, negative, or 0 (zero)) by which the range is to be offset. Positive values are offset downward, and negative values are offset upward. The default value is 0.
The number of columns (positive, negative, or 0 (zero)) by which the range is to be offset. Positive values are offset to the right, and negative values are offset to the left. The default value is 0.
If you attempt to use without specifying any parameters, will get an XmlMappedRange_OffsetType object that is part of the Office development tools in Visual Studio infrastructure and is not intended to be used directly from your code.
For information on optional parameters, see Optional Parameters in Office Solutions.
The following code example uses the property to select a range that is offset from an XmlMappedRange by three cells to the right and three cells down. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.