[]
Gets the value of the specified range as a string, double, bool,
object[,] (Object(,) in Visual Basic) or null (Nothing in Visual Basic);
or sets the value of the specified cell as a string, double, short, int, long,
bool, DateTime, TimeSpan,
object[,] (Object(,) in Visual Basic) or null (Nothing in Visual Basic).
object Value { get; set; }
Property Value As Object
| Type | Description |
|---|---|
| object | The value. |
IRange range = worksheet.Range["A1:B2"];
range.Value = new object[,] {{"Name", "Score"}, {"Alice", 95}};
object value = worksheet.Range["B2"].Value;