Compartir a través de


XmlMappedRange.Resize Property

Definition

Gets a resized Range based on the XmlMappedRange control.

public:
 property Microsoft::Office::Tools::Excel::XmlMappedRange_ResizeType ^ Resize { Microsoft::Office::Tools::Excel::XmlMappedRange_ResizeType ^ get(); };
public Microsoft.Office.Tools.Excel.XmlMappedRange_ResizeType Resize { get; }
member this.Resize : Microsoft.Office.Tools.Excel.XmlMappedRange_ResizeType
Public ReadOnly Property Resize As XmlMappedRange_ResizeType

Property Value

A resized Range based on the XmlMappedRange control.

Examples

The following code example uses the Resize property to get a larger range based on an XmlMappedRange, and then selects the new range. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

private void ResizeRange()
{
    Excel.Range range1 = this.CustomerLastNameCell.Resize[2, 2];
    range1.Select();
}
Private Sub ResizeRange()
    Dim range1 As Excel.Range = Me.CustomerLastNameCell.Resize(2, 2)
    range1.Select()
End Sub

Remarks

The Resize property is intended to be used with the following parameters.

Parameter Description
RowSize The number of rows in the new range. If this argument is omitted, the number of rows in the range remains the same.
ColumnSize The number of columns in the new range. If this argument is omitted, the number of columns in the range remains the same.

If you attempt to use Resize without specifying any parameters, Resize will get an XmlMappedRange_ResizeType object that is part of Office development tools in Visual Studio infrastructure and is not intended to be used directly from your code.

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

Applies to