Share via


NSView.LockFocusIfCanDrawInContext(NSGraphicsContext) 方法

定义

[Foundation.Export("lockFocusIfCanDrawInContext:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.None, "Use 'NSView.DisplayRectIgnoringOpacity (CGRect, NSGraphicsContext)' to draw into a graphics context.")]
public virtual bool LockFocusIfCanDrawInContext (AppKit.NSGraphicsContext context);
abstract member LockFocusIfCanDrawInContext : AppKit.NSGraphicsContext -> bool
override this.LockFocusIfCanDrawInContext : AppKit.NSGraphicsContext -> bool

参数

返回

属性

适用于