ScrollBar
open class ScrollBar : Manipulator
Represents a scrollbar manipulator. This class inherits Manipulator.
-
Initializes a new instance of the ScrollBar class associated with the specified diagram item.
Declaration
Swift
public override init(item: DiagramItem)Parameters
itemThe DiagramItem associated with this scrollbar.
Return Value
The newly created ScrollBar object.
-
init(item:position: width: height: backgroundBrush: scrollOnMouseOverBrush: scrollOnMouseOutBrush: backgroundStroke: scrollStroke: ) Initializes a new instance of the ScrollBar class associated with the specified diagram item and with the specified properties.
Declaration
Parameters
itemThe DiagramItem associated with this scrollbar.
positionThe position of the scrollbar. The value can be nil.
widthThe width of the scrollbar.
heightThe height of the scrollbar.
backgroundBrushThe brush used for painting the background of the
scrollbar. The value can be nil.scrollOnMouseOverBrushThe brush used for painting the scroll when the mouse moves out. The value can be nil.
scrollOnMouseOverBrushThe brush used for painting the scroll when the mouse moves out. The value can be nil.
backgroundStrokeThe color of the scroll stroke.
backgroundStrokeThe color of the scroll stroke.
Return Value
The newly created ScrollBar object.
-
Gets or sets the width of the scrollbar.
Declaration
Swift
open var width: Double { get } -
Gets or sets the height of the scrollbar.
Declaration
Swift
open var height: Double { get } -
Gets or sets the Y-position of the scroller.
Declaration
Swift
open var yScrollPosition: Double -
Gets or sets the scroll height.
Declaration
Swift
open var scrollHeight: Double { get } -
Gets or sets the diameter of the ScrollBar.
Declaration
Swift
open var diameter: Double { get }
ScrollBar Class Reference