[]
        
(Showing Draft Content)

FarPoint.Win.Spread.SheetView.SetValue

SetValue Method

SetValue(int, int, object)

Sets the value for the specified cell on this sheet.

Declaration
public void SetValue(int row, int column, object value)
Public Sub SetValue(row As Integer, column As Integer, value As Object)
Parameters
Type Name Description
int row

Row index

int column

Column index

object value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, bool)

Sets the value for the specified cell on this sheet.

Declaration
public void SetValue(int row, int column, bool value)
Public Sub SetValue(row As Integer, column As Integer, value As Boolean)
Parameters
Type Name Description
int row

Row index

int column

Column index

bool value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, DateTime)

Sets the value for the specified cell on this sheet.

Declaration
public void SetValue(int row, int column, DateTime value)
Public Sub SetValue(row As Integer, column As Integer, value As Date)
Parameters
Type Name Description
int row

Row index

int column

Column index

DateTime value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, double)

Sets the value for the specified cell on this sheet.

Declaration
public void SetValue(int row, int column, double value)
Public Sub SetValue(row As Integer, column As Integer, value As Double)
Parameters
Type Name Description
int row

Row index

int column

Column index

double value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, int)

Sets the value for the specified cell on this sheet.

Declaration
public void SetValue(int row, int column, int value)
Public Sub SetValue(row As Integer, column As Integer, value As Integer)
Parameters
Type Name Description
int row

Row index

int column

Column index

int value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, char)

Sets the value for the specified cell on this sheet.

Declaration
public void SetValue(int row, int column, char value)
Public Sub SetValue(row As Integer, column As Integer, value As Char)
Parameters
Type Name Description
int row

Row index

int column

Column index

char value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, sbyte)

Sets the value for the specified cell on this sheet.

Declaration
[CLSCompliant(false)]
public void SetValue(int row, int column, sbyte value)
<CLSCompliant(False)>
Public Sub SetValue(row As Integer, column As Integer, value As SByte)
Parameters
Type Name Description
int row

Row index

int column

Column index

sbyte value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, byte)

Sets the value for the specified cell on this sheet.

Declaration
public void SetValue(int row, int column, byte value)
Public Sub SetValue(row As Integer, column As Integer, value As Byte)
Parameters
Type Name Description
int row

Row index

int column

Column index

byte value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, short)

Sets the value for the specified cell on this sheet.

Declaration
public void SetValue(int row, int column, short value)
Public Sub SetValue(row As Integer, column As Integer, value As Short)
Parameters
Type Name Description
int row

Row index

int column

Column index

short value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, ushort)

Sets the value for the specified cell on this sheet.

Declaration
[CLSCompliant(false)]
public void SetValue(int row, int column, ushort value)
<CLSCompliant(False)>
Public Sub SetValue(row As Integer, column As Integer, value As UShort)
Parameters
Type Name Description
int row

Row index

int column

Column index

ushort value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, uint)

Sets the value for the specified cell on this sheet.

Declaration
[CLSCompliant(false)]
public void SetValue(int row, int column, uint value)
<CLSCompliant(False)>
Public Sub SetValue(row As Integer, column As Integer, value As UInteger)
Parameters
Type Name Description
int row

Row index

int column

Column index

uint value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, long)

Sets the value for the specified cell on this sheet.

Declaration
public void SetValue(int row, int column, long value)
Public Sub SetValue(row As Integer, column As Integer, value As Long)
Parameters
Type Name Description
int row

Row index

int column

Column index

long value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, ulong)

Sets the value for the specified cell on this sheet.

Declaration
[CLSCompliant(false)]
public void SetValue(int row, int column, ulong value)
<CLSCompliant(False)>
Public Sub SetValue(row As Integer, column As Integer, value As ULong)
Parameters
Type Name Description
int row

Row index

int column

Column index

ulong value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, float)

Sets the value for the specified cell on this sheet.

Declaration
public void SetValue(int row, int column, float value)
Public Sub SetValue(row As Integer, column As Integer, value As Single)
Parameters
Type Name Description
int row

Row index

int column

Column index

float value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, decimal)

Sets the value for the specified cell on this sheet.

Declaration
public void SetValue(int row, int column, decimal value)
Public Sub SetValue(row As Integer, column As Integer, value As Decimal)
Parameters
Type Name Description
int row

Row index

int column

Column index

decimal value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, string)

Sets the value for the specified cell on this sheet.

Declaration
public void SetValue(int row, int column, string value)
Public Sub SetValue(row As Integer, column As Integer, value As String)
Parameters
Type Name Description
int row

Row index

int column

Column index

string value

Value to set for the specified cell

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns

SetValue(int, int, object, bool)

Sets the value for the specified cell on this sheet.

Declaration
public void SetValue(int row, int column, object value, bool validate)
Public Sub SetValue(row As Integer, column As Integer, value As Object, validate As Boolean)
Parameters
Type Name Description
int row

Row index

int column

Column index

object value

Value to set for the specified cell

bool validate

Perform value validation

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified row index is out of range; must be between 0 and the total number of rows

ArgumentOutOfRangeException

Specified column index is out of range; must be between 0 and the total number of columns