NSGradient Constructors
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.
Overloads
NSGradient()
NSGradient(NSColor[])
[Foundation.Export("initWithColors:")]
public NSGradient (AppKit.NSColor[] colorArray);
new AppKit.NSGradient : AppKit.NSColor[] -> AppKit.NSGradient
Parameters
- colorArray
- NSColor[]
- Attributes
Applies to
NSGradient(NSCoder)
[Foundation.Export("initWithCoder:")]
[ObjCRuntime.DesignatedInitializer]
public NSGradient (Foundation.NSCoder coder);
new AppKit.NSGradient : Foundation.NSCoder -> AppKit.NSGradient
Parameters
- coder
- NSCoder
- Attributes
Applies to
NSGradient(NSObjectFlag)
protected NSGradient (Foundation.NSObjectFlag t);
new AppKit.NSGradient : Foundation.NSObjectFlag -> AppKit.NSGradient
Parameters
Applies to
NSGradient(IntPtr)
protected internal NSGradient (IntPtr handle);
new AppKit.NSGradient : nativeint -> AppKit.NSGradient
Parameters
- handle
-
IntPtr
nativeint
Applies to
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
Parameters
- colors
- NSColor[]
- locations
- Double[]
- colorSpace
- NSColorSpace
Applies to
NSGradient(NSColor[], Single[], NSColorSpace)
public NSGradient (AppKit.NSColor[] colors, float[] locations, AppKit.NSColorSpace colorSpace);
new AppKit.NSGradient : AppKit.NSColor[] * single[] * AppKit.NSColorSpace -> AppKit.NSGradient
Parameters
- colors
- NSColor[]
- locations
- Single[]
- colorSpace
- NSColorSpace