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