| SliceSet(Int32, Position, Int32) Method |
Sets the specified starting index, a Position value indicating the end of the data, and
a specified stride.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public virtual void Set(
int start,
Position position,
int stride
)
Public Overridable Sub Set (
start As Integer,
position As Position,
stride As Integer
)
public:
virtual void Set(
int start,
Position position,
int stride
)
abstract Set :
start : int *
position : Position *
stride : int -> unit
override Set :
start : int *
position : Position *
stride : int -> unit
Parameters
- start Int32
- The first data element.
- position Position
- A value from the Position enumeration indicating the end of the data.
- stride Int32
- The step increment between successive data elements.
Exceptions Exception | Condition |
---|
InvalidArgumentException |
Thrown if the start is negative, the stride is zero, the position is
Position.Start and the stride is positive or the position is
Position.End and the stride is negative.
|
Remarks
If the stride is negative, the end position is set to zero.
See Also