NSView 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
NSView() | |
NSView(CGRect) | |
NSView(NSCoder) | |
NSView(NSObjectFlag) | |
NSView(IntPtr) |
NSView()
NSView(CGRect)
[Foundation.Export("initWithFrame:")]
[ObjCRuntime.DesignatedInitializer]
public NSView (CoreGraphics.CGRect frameRect);
new AppKit.NSView : CoreGraphics.CGRect -> AppKit.NSView
參數
- frameRect
- CGRect
- 屬性
適用於
NSView(NSCoder)
[Foundation.Export("initWithCoder:")]
[ObjCRuntime.DesignatedInitializer]
public NSView (Foundation.NSCoder coder);
new AppKit.NSView : Foundation.NSCoder -> AppKit.NSView
參數
- coder
- NSCoder
- 屬性
適用於
NSView(NSObjectFlag)
protected NSView (Foundation.NSObjectFlag t);
new AppKit.NSView : Foundation.NSObjectFlag -> AppKit.NSView
參數
適用於
NSView(IntPtr)
protected internal NSView (IntPtr handle);
new AppKit.NSView : nativeint -> AppKit.NSView
參數
- handle
-
IntPtr
nativeint