Method SetPosition
SetPosition(Int32)
Sets the position of this buffer.
If the mark is set and it is greater than the new position, then it is cleared.
Declaration
public Buffer SetPosition(int newPosition)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | newPosition | The new position, must be not negative and not greater than limit. |
Returns
Type | Description |
---|---|
Buffer | This buffer |