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
item
The 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
item
The DiagramItem associated with this scrollbar.
position
The position of the scrollbar. The value can be nil.
width
The width of the scrollbar.
height
The height of the scrollbar.
backgroundBrush
The brush used for painting the background of the
scrollbar. The value can be nil.scrollOnMouseOverBrush
The brush used for painting the scroll when the mouse moves out. The value can be nil.
scrollOnMouseOverBrush
The brush used for painting the scroll when the mouse moves out. The value can be nil.
backgroundStroke
The color of the scroll stroke.
backgroundStroke
The 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 }