Partager via


XmlMappedRange.Value Property

Gets or sets the value of the XmlMappedRange control.

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

Syntax

'Declaration
Property Value As Object
Object Value { get; set; }

Property Value

Type: System.Object
The value of the XmlMappedRange control.

Remarks

The Value property can be used with the following optional parameters. If you specify the optional parameters, you must use the set_Value and get_Value accessors in Visual Basic and C#.

Parameter

Description

RangeValueDataType

One of the XlRangeValueDataType values that specifies the data type of the range value. The default is xlRangeValueDefault.

_arg1

The value of the XmlMappedRange control. This parameter is used only with the set_Value set accessor.

Optional Parameters

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

Examples

The following code example demonstrates how to set the Value property with and without the optional parameters. This code example assumes that the current worksheet contains two XmlMappedRange controls named CustomerLastNameCell and CustomerFirstNameCell.

Private Sub SetValue()
    Me.CustomerLastNameCell.Value = "Hill" 
    Me.CustomerFirstNameCell.set_Value( _
        Excel.XlRangeValueDataType.xlRangeValueDefault, "Chris")
End Sub
private void SetValue()
{
    this.CustomerLastNameCell.Value = "Hill";
    this.CustomerFirstNameCell.set_Value(
        Excel.XlRangeValueDataType.xlRangeValueDefault, "Chris");
}

.NET Framework Security

See Also

Reference

XmlMappedRange Interface

Microsoft.Office.Tools.Excel Namespace