# CCSprite9Slice Class Reference

Inherits from | CCSprite : CCNode : CCResponder : NSObject
Declared in | CCSprite9Slice.h

## Overview

CCSprite9Slice will render a single image as nine quads, keeping the margins fixed, and stretching the center quads, to fit the content size. See CCSprite for usage.

## Tasks

### Accessing Margin Attributes

- `margin` property
- `marginLeft` property
- `marginRight` property
- `marginTop` property
- `marginBottom` property

## Properties

### margin

Sets the margin as a normalized percentage of the total image size. If set to 0.25, 25% of the left, right, top and bottom of the image, will be unstratched.

`@property (nonatomic, assign) float margin`

#### Declared In

`CCSprite9Slice.h`

### marginBottom

Sets the bottom margin exclusively.

`@property (nonatomic, assign) float marginBottom`

#### Declared In

`CCSprite9Slice.h`

### marginLeft

Sets the left margin exclusively.

`@property (nonatomic, assign) float marginLeft`

#### Declared In

`CCSprite9Slice.h`

### marginRight

Sets the right margin exclusively.

`@property (nonatomic, assign) float marginRight`

#### Declared In

`CCSprite9Slice.h`

### marginTop

Sets the top margin exclusively.

`@property (nonatomic, assign) float marginTop`

#### Declared In

`CCSprite9Slice.h`