GraffitiSuite Docs
Docs
Graffitiseparator
Loading document parsing libraries...
# 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 | | | kAlignLeft | Double | 0 | | | kAlignRight | Double | 2 | | ## Methods | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | Sub | AddColor | (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. | | Sub | ChangeColor | (None) | Quickly swaps out the color at Index for NewColor. | | Sub | RemoveAllColors | (None) | Removes all colors from the Colors() array. | | Sub | RemoveColor | (None) | Removes the Color from the Colors() array by Index. | ## Properties | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | BorderWidth | Integer | Nil | The width of the border. | | Colors() | Color | Nil | The array of colors to use for drawing the separator fill. | | IsGradient | Boolean | Nil | Sets whether the separator is drawn as a gradient. | | Orientation | Directions | Nil | Determines how the separator is drawn. | | Private | As | = | | | Private | As | Nil | | | Private | As | Nil | | | Private | As | Nil | | | Private | As | Nil | | | Private | As | Nil | | | Style | Styles | Nil | Sets how the separator is displayed. |