These constants specify the location of the layer content when the content is not re-rendered in response to view resizing. See setLayerContentsPlacement: for more information.
Available in Mac OS X v10.6 and later.

C# | Visual Basic | Visual C++ |
public enum NSViewLayerContentsPlacement
Public Enumeration NSViewLayerContentsPlacement
public enum class NSViewLayerContentsPlacement

Member | Description |
---|---|
NSViewLayerContentsPlacementScaleAxesIndependently | The content is resized to fit the entire bounds rectangle. Available in Mac OS X v10.6 and later. |
NSViewLayerContentsPlacementScaleProportionallyToFit | The content is resized to fit the bounds rectangle, preserving the aspect of the content. If the content does not completely fill the bounds rectangle, the content is centered in the partial axis. Available in Mac OS X v10.6 and later. |
NSViewLayerContentsPlacementScaleProportionallyToFill | The content is resized to completely fill the bounds rectangle, while still preserving the aspect of the content. The content is centered in the axis it exceeds. Available in Mac OS X v10.6 and later. |
NSViewLayerContentsPlacementCenter | The content is horizontally and vertically centered in the bounds rectangle. Available in Mac OS X v10.6 and later. |
NSViewLayerContentsPlacementTop | The content is horizontally centered at the top-edge of the bounds rectangle. Available in Mac OS X v10.6 and later. |
NSViewLayerContentsPlacementTopRight | The content is positioned in the top-right corner of the bounds rectangle. Available in Mac OS X v10.6 and later. |
NSViewLayerContentsPlacementRight | The content is vertically centered at the right-edge of the bounds rectangle. Available in Mac OS X v10.6 and later. |
NSViewLayerContentsPlacementBottomRight | The content is positioned in the bottom-right corner of the bounds rectangle. Available in Mac OS X v10.6 and later. |
NSViewLayerContentsPlacementBottom | The content is horizontally centered at the bottom-edge of the bounds rectangle. Available in Mac OS X v10.6 and later. |
NSViewLayerContentsPlacementBottomLeft | The content is positioned in the bottom-left corner of the bounds rectangle. Available in Mac OS X v10.6 and later. |
NSViewLayerContentsPlacementLeft | The content is vertically centered at the left-edge of the bounds rectangle. Available in Mac OS X v10.6 and later. |
NSViewLayerContentsPlacementTopLeft | The content is positioned in the top-left corner of the bounds rectangle. Available in Mac OS X v10.6 and later. |

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)