Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. AppKit
  3. NSGraphicsContext
  4. SetGraphicsState(nint)
  • NSGraphicsContext
    • NSGraphicsContext()
    • NSGraphicsContext(IntPtr)
    • NSGraphicsContext(NativeHandle)
    • NSGraphicsContext(NSObjectFlag)
    • Attributes
    • CGContext
    • CIContext
    • ClassHandle
    • ColorRenderingIntent
    • CompositingOperation
    • CurrentContext
    • GraphicsPort
    • GraphicsPortHandle
    • ImageInterpolation
    • IsCurrentContextDrawingToScreen
    • IsDrawingToScreen
    • IsFlipped
    • PatternPhase
    • ShouldAntialias
    • FlushGraphics()
    • FromAttributes(NSDictionary)
    • FromBitmap(NSBitmapImageRep)
    • FromCGContext(CGContext, Boolean)
    • FromGraphicsPort(CGContext, Boolean)
    • FromGraphicsPort(nint, Boolean)
    • FromWindow(NSWindow)
    • GlobalRestoreGraphicsState()
    • GlobalSaveGraphicsState()
    • RestoreGraphicsState()
    • SaveGraphicsState()
    • SetGraphicsState(nint)
    • SetGraphicsState(nint)
xamarinmac
namespace AppKit
{
    [Register("NSGraphicsContext", true)]
    public class NSGraphicsContext : NSObject
    {
        [BindingImpl(BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
        [Deprecated(PlatformName.MacOSX, 10, 10, PlatformArchitecture.None, "This method has no effect.")]
        [Export("setGraphicsState:")]
        public static void SetGraphicsState(nint gState);
    }
}
Xamarin macOS
0.0
Information specific to xamarinmac
Assembly

Xamarin.Mac , Version=0.0.0.0, PublicKeyToken=84e04ff9cfb79065

Referencing

The API is automatically referenced.

Platform Restrictions

This framework does not have platform annotations.

  • Built-in API
  • Package-provided API
Search

10/15/2026
This site is managed by Microsoft | © 2026 Microsoft. All rights reserved.
  • Privacy Statement
  • Consumer Health Privacy
  • Terms of Use
  • Contact Us
  • Hosted on Microsoft Azure
  • Manage cookies
  • Your Privacy Choices
Oops, we couldn't process your request. Reload 🗙