Android.Graphics.Canvas.RestoreToCount Method
Efficient way to pop any calls to save() that happened after the save count reached saveCount.

Syntax

[Android.Runtime.Register("restoreToCount", "(I)V", "GetRestoreToCount_IHandler")]
public virtual void RestoreToCount (int saveCount)

Parameters

saveCount
The save level to restore to.

Remarks

Efficient way to pop any calls to save() that happened after the save count reached saveCount. It is an error for saveCount to be less than 1. Example: int count = canvas.save(); ... // more calls potentially to save() canvas.restoreToCount(count); // now the canvas is back in the same state it was before the initial // call to save().

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1