Share via


XmlMappedRange.Value Property (2007 System)

Gets or sets the value of 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)> _
<BindableAttribute(True)> _
Public Property Value As Object
'Usage
Dim instance As XmlMappedRange 
Dim value As Object 

value = instance.Value

instance.Value = value
[BrowsableAttribute(false)]
[BindableAttribute(true)]
public Object Value { get; set; }
[BrowsableAttribute(false)]
[BindableAttribute(true)]
public:
property Object^ Value {
    Object^ get ();
    void set (Object^ value);
}
public function get Value () : Object 
public function set Value (value : Object)

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 The Variable missing and 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 Class

XmlMappedRange Members

Microsoft.Office.Tools.Excel Namespace