# GraffitiSeparator
Class Inherits GraffitiSuite.BaseCanvas
## About
GraffitiSeparator is the easy way to add custom UI segmenting lines to your applications.Features:
*
14 different line styles to choose from
*
Variable line width/height
*
Horizontal or vertical orientation
*
Gradient support
## Preview

Previous
Next
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| True | True |
### Desktop
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Enumerations
| Name | Value | Description |
| --- | :---: | --- |
| Directions | Horizontal <br > Vertical | Supported visual orientations. |
| Styles | Solid <br > DoubleSolid <br > TripleSolid <br > Dashed <br > DoubleDashed <br > TripleDashed <br > Dotted <br > DoubleDotted <br > TripleDotted <br > Inset <br > DoubleInset <br > TripleInset <br > Raised <br > DoubleRaised <br > TripleRaised | Supported drawing styles. |
## Constants
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| kAlignCenter | Double | 1 | (None) |
| kAlignLeft | Double | 0 | (None) |
| kAlignRight | Double | 2 | (None) |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| AddColor | c as Color | (None) | Adds a defined color for the gradient array. For non-gradient display, the first element in the Colors array will be used to draw. |
| ChangeColor | ColorIndex as Integer <br> NewColor as Color | (None) | Quickly swaps out the color at Index for NewColor. |
| RemoveAllColors | (None) | (None) | Removes all colors from the Colors() array. |
| RemoveColor | Index as Integer | (None) | Removes the Color from the Colors() array by Index. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| BorderWidth | Integer | (None) | The width of the border. |
| Colors() | Color | (None) | The array of colors to use for drawing the separator fill. |
| IsGradient | Boolean | (None) | Sets whether the separator is drawn as a gradient. |
| Orientation | Directions | (None) | Determines how the separator is drawn. |
| Style | Styles | (None) | Sets how the separator is displayed. |