MonobjcMonobjc Documented Class Library
NSCellAttribute Enumeration
NamespacesMonobjc.AppKitNSCellAttribute

These constants specify how a button behaves when pressed and how it displays its state. These constants are used by the NSButton and NSButtonCell classes

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public enum NSCellAttribute
Public Enumeration NSCellAttribute
public enum class NSCellAttribute
Members
MemberDescription
NSCellDisabled

Does not let the user manipulate the cell.

Available in Mac OS X v10.0 and later.


NSCellState

The cell’s state.

The cell’s state can be NSMixedState, NSOffState, or NSOnState.

Available in Mac OS X v10.0 and later.


NSPushInCell

Determines whether the cell’s image and text appear to be shifted down and to the right.

Available in Mac OS X v10.0 and later.


NSCellEditable

Lets the user edit the cell’s contents.

Available in Mac OS X v10.0 and later.


NSChangeGrayCell

If the cell’s state is NSMixedState or NSOnState, displays the cell’s image as darkened.

Available in Mac OS X v10.0 and later.


NSCellHighlighted

Draws the cell with a highlighted appearance. (Deprecated. Use setHighlighted: instead.)

Available in Mac OS X v10.0 and later.


NSCellLightsByContents

If the cell is pushed in, displays the cell’s alternate image.

Available in Mac OS X v10.0 and later.


NSCellLightsByGray

If the cell is pushed in, displays the cell’s image as darkened.

Available in Mac OS X v10.0 and later.


NSChangeBackgroundCell

If the cell’s state is NSMixedState or NSOnState, changes the cell’s background color from gray to white.

Available in Mac OS X v10.0 and later.


NSCellLightsByBackground

If the cell is pushed in, changes the cell’s background color from gray to white.

Available in Mac OS X v10.0 and later.


NSCellIsBordered

Draws a border around the cell.

Available in Mac OS X v10.0 and later.


NSCellHasOverlappingImage

Controls the position of the cell’s image: places the image over any text in the cell.

See NSCellHasImageHorizontal for more details.

Available in Mac OS X v10.0 and later.


NSCellHasImageHorizontal

Controls the position of the cell’s image: places the image on the right of any text in the cell.

Together, NSCellHasImageOnLeftOrBottom, NSCellHasImageHorizontal, and NSCellHasOverlappingImage control the position of the cell’s image and text. To place the image above, set none of them. To place the image below, set NSCellHasImageOnLeftOrBottom. To place the image to the right, set NSCellHasImageHorizontal. To place the image to the left, set NSCellHasImageHorizontal and NSCellHasImageOnLeftOrBottom. To place the image directly over, set NSCellHasOverlappingImage.

Available in Mac OS X v10.0 and later.


NSCellHasImageOnLeftOrBottom

Controls the position of the cell’s image: places the image on the left of or below any text in the cell.

See NSCellHasImageHorizontal for more details.

Available in Mac OS X v10.0 and later.


NSCellChangesContents

If the cell’s state is NSMixedState or NSOnState, displays the cell’s alternate image.

Available in Mac OS X v10.0 and later.


NSCellIsInsetButton

Insets the cell’s contents from the border.

By default, the cell’s contents are inset by 2 points. This constant is ignored if the cell is unbordered.

Available in Mac OS X v10.0 and later.


NSCellAllowsMixedState

Lets the cell’s state be NSMixedState, as well as NSOffState and NSOnState.

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)