Replaces the value at the specific index.

Namespace: Spire.Doc.Collections
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 9.6.1.0 (9.6.1.3020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public virtual void SetByIndex(
	int index,
	TValue value
)
Public Overridable Sub SetByIndex ( 
	index As Integer,
	value As TValue
)
public:
virtual void SetByIndex(
	int index, 
	TValue value
)
abstract SetByIndex : 
        index : int * 
        value : 'TValue -> unit 
override SetByIndex : 
        index : int * 
        value : 'TValue -> unit 

Parameters

index
Int32
The zero-based index at which to save value.
value
TValue
The Object to save into. Can be NULL.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeException When index is less than zero or greater than size of the list.

See Also