Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

XmlMappedRange.Resize Property (2007 System)

Gets a resized Range based on the XmlMappedRange control.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

[BrowsableAttribute(false)]
public XmlMappedRange..::._ResizeType Resize { get; }

Property Value

Type: Microsoft.Office.Tools.Excel.XmlMappedRange._ResizeType
A resized Range based on the XmlMappedRange control.

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 the Visual Studio Tools for Office infrastructure and is not intended to be used directly from your code.

Optional Parameters

For information on optional parameters, see The Variable missing and Optional Parameters in Office Solutions.

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();
}

Community Additions

ADD
Show:
© 2015 Microsoft