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)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property Resize As XmlMappedRange._ResizeType
'Usage
Dim instance As XmlMappedRange
Dim value As XmlMappedRange._ResizeType
value = instance.Resize
[BrowsableAttribute(false)]
public XmlMappedRange._ResizeType Resize { get; }
[BrowsableAttribute(false)]
public:
property XmlMappedRange._ResizeType^ Resize {
XmlMappedRange._ResizeType^ get ();
}
public function get Resize () : XmlMappedRange._ResizeType
Property Value
Type: Microsoft.Office.Tools.Excel.XmlMappedRange._ResizeType
A resized Range based on the XmlMappedRange control.
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 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.
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 Sub ResizeRange()
Dim range1 As Excel.Range = Me.CustomerLastNameCell.Resize(2, 2)
range1.Select()
End Sub
private void ResizeRange()
{
Excel.Range range1 = this.CustomerLastNameCell.Resize[2, 2];
range1.Select();
}
.NET Framework Security
- 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.