MonobjcMonobjc Documented Class Library
NSGradientType Enumeration
NamespacesMonobjc.AppKitNSGradientType

Specify the gradients used by gradientType and setGradientType:.

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public enum NSGradientType
Public Enumeration NSGradientType
public enum class NSGradientType
Members
MemberDescription
NSGradientNone

There is no gradient, so the button looks flat.

Available in Mac OS X v10.0 and later.


NSGradientConcaveWeak

The top-left corner is light gray, and the bottom-right corner is dark gray, so the button appears to be pushed in.

Available in Mac OS X v10.0 and later.


NSGradientConcaveStrong

As with NSGradientConcaveWeak, the top-left corner is light gray, and the bottom-right corner is dark gray, but the difference between the grays is greater, so the appearance of being pushed in is stronger.

Available in Mac OS X v10.0 and later.


NSGradientConvexWeak

The top-left corner is dark gray, and the bottom-right corner is light gray, so the button appears to be sticking out.

Available in Mac OS X v10.0 and later.


NSGradientConvexStrong

As with NSGradientConvexWeak, the top-left corner is dark gray, and the bottom-right corner is light gray, but the difference between the grays is greater, so the appearance of sticking out is stronger.

Available in Mac OS X v10.0 and later.


Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)