GraffitiSuite Docs
Docs
Graffitigradientselector
Loading document parsing libraries...
# GraffitiGradientSelector Class Inherits GraffitiUIControl ## Compatibility ### Framework API Version | 1.0 | 2.0 | | :---: | :---: | | True | True | ### iOS | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ## Enumerations | Name | Value | Description | | --- | :---: | --- | | Styles | Linear <br > Radial | Supported gradient styles. | ## Event Definitions | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | AddMarker | MarkerPosition as Integer <br> byRef MarkerColor as Color | Boolean | Raised when a new marker is added by the user. | | MarkerDrag | Marker as GraffitiGradientSelectorValue <br> PreviousPosition as Integer | (None) | Raise during marker drag operations. | | MarkerMoved | Marker as GraffitiGradientSelectorValue <br> PreviousPositon as Integer | (None) | Raised when the user has completed a marker drag. | | MarkerPressed | Marker as GraffitiGradientSelectorValue | (None) | Raised when the user presses a marker. | | MarkerRemoved | Marker as GraffitiGradientSelectorValue <br> PreviousPosition as Integer | (None) | Raised when the user removes a marker. | | MarkerScaleChanged | Marker as GraffitiGradientSelectorValue <br> PreviousScale as Integer | (None) | Raised when the user has changed the scale of a marker. | ## Methods | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | Add | value as GraffitiGradientSelectorValue | (None) | Adds a new marker. | | AddAt | index as Integer <br> value as GraffitiGradientSelectorValue | (None) | Inserts a marker. | | FindMarker | MarkerValue as Color <br> MarkerPosition as Integer | Integer | Returns a matching marker index. | | FindMarker | Marker as GraffitiGradientSelectorValue | Integer | Returns the index of the specified marker. | | FromBrush | brush as GraphicsBrush | (None) | Adds markers and scale to match a Xojo GradientBrush. | | ItemAt | index as Integer | GraffitiGradientSelectorValue | Returns the marker at the specified index. | | LastIndex | (None) | Integer | Returns the index of the last marker. | | Remove | value as GraffitiGradientSelectorValue | (None) | Removes the specified marker. | | RemoveAll | (None) | (None) | Removes all markers. | | RemoveAt | index as Integer | (None) | Removes the marker at the specified index. | | ToBrush | includeScaleValues as Boolean = True | GraphicsBrush | Returns a Xojo GradientBrush matching the current values. | ## Properties | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | Angle | Integer | (None) | (None) | | AntiAliasRadial | Boolean | (None) | (None) | | BackgroundColor | ColorGroup | (None) | (None) | | BorderColor | ColorGroup | (None) | (None) | | ExcludeMarker | GraffitiGradientSelectorValue | (None) | Allows for hiding a specific marker. | | FillBackground | Boolean | (None) | (None) | | FillBackgroundColor | ColorGroup | (None) | (None) | | LockUpdate | Boolean | (None) | (None) | | MarkerBackgroundColor | ColorGroup | (None) | (None) | | MarkerBorderColor | ColorGroup | (None) | (None) | | ScaleMarkerBackgroundColor | ColorGroup | (None) | (None) | | ShowControls | Boolean | (None) | (None) | | Style | GraffitiGradientSelector.Styles | (None) | (None) |