UIGraphics.GetCurrentContext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the current graphics context
public static CoreGraphics.CGContext GetCurrentContext ();
static member GetCurrentContext : unit -> CoreGraphics.CGContext
Returns
Remarks
This returns the current graphics context (the context at the top of the stack). This is only valid after you have pushed a new graphics context with one of the methods in this class.
Developers can call this method from any thread.