Class ScrollBar
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
The ScrollBar class of nui component. It allows users to recognize the direction and the range of lists/content.
C#Copy[Obsolete("Deprecated in API8; Will be removed in API10")] public class ScrollBar : Control, INotifyPropertyChanged, IDisposable
- Inheritance
-
objectTizen.NUI.Binding.ElementTizen.NUI.Components.ControlScrollBar
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Remarks
Please note that this class will be replaced with Scrollbar class in the near future.
Constructors
Declaration
C#Copy[Obsolete("Deprecated in API8; Will be removed in API10")] public ScrollBar()
Remarks
Please note that this class will be replaced with Scrollbar class in the near future.
Properties
Declaration
C#Copy[Obsolete("Deprecated in API8; Will be removed in API10")] public int CurrentValue { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
Please note that this class will be replaced with Scrollbar class in the near future.
Examples
CopyScrollBar scroll; scroll.MaxValue = 100; scroll.MinValue = 0; try { scroll.CurrentValue = 50; } catch(ArgumentOutOfRangeException e) { Tizen.Log.Error(LogTag, "Failed to set Current value : " + e.Message); }
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | Throw when Current value is less than Min value, or greater than Max value. |
Declaration
C#Copy[Obsolete("Deprecated in API8; Will be removed in API10")] public ScrollBar.DirectionType Direction { get; set; }
Property Value
| Type | Description |
|---|---|
| ScrollBar.DirectionType |
Remarks
Please note that this class will be replaced with Scrollbar class in the near future.
Declaration
C#Copy[Obsolete("Deprecated in API8; Will be removed in API10")] public uint Duration { get; set; }
Property Value
| Type | Description |
|---|---|
| uint |
Remarks
Please note that this class will be replaced with Scrollbar class in the near future.
Declaration
C#Copy[Obsolete("Deprecated in API8; Will be removed in API10")] public int MaxValue { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
Please note that this class will be replaced with Scrollbar class in the near future.
Declaration
C#Copy[Obsolete("Deprecated in API8; Will be removed in API10")] public int MinValue { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
Please note that this class will be replaced with Scrollbar class in the near future.
Declaration
C#Copy[Obsolete("Deprecated in API8; Will be removed in API10")] public Color ThumbColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Remarks
Please note that this class will be replaced with Scrollbar class in the near future.
Declaration
C#Copy[Obsolete("Deprecated in API8; Will be removed in API10")] public Size ThumbSize { get; set; }
Property Value
| Type | Description |
|---|---|
| Size |
Remarks
Please note that this class will be replaced with Scrollbar class in the near future.
Examples
CopyScrollBar scroll; try { scroll.ThumbSize = new Size(500, 10, 0); } catch(InvalidOperationException e) { Tizen.Log.Error(LogTag, "Failed to set ThumbSize value : " + e.Message); }
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Throw when ThumbSize is null. |
Declaration
C#Copy[Obsolete("Deprecated in API8; Will be removed in API10")] public Color TrackColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Remarks
Please note that this class will be replaced with Scrollbar class in the near future.
Declaration
C#Copy[Obsolete("Deprecated in API8; Will be removed in API10")] public string TrackImageURL { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
Please note that this class will be replaced with Scrollbar class in the near future.
Methods
Declaration
C#Copy[Obsolete("Deprecated in API8; Will be removed in API10")] protected override void Dispose(DisposeTypes type)
Parameters
| Type | Name | Description |
|---|---|---|
| DisposeTypes | type | The DisposeTypes value. |
Overrides
Remarks
Please note that this class will be replaced with Scrollbar class in the near future.
SetCurrentValue(int, bool)
Method to set current value. The thumb object would move to the corresponding position with animation or not.
Declaration
C#Copy[Obsolete("Deprecated in API8; Will be removed in API10")] public void SetCurrentValue(int currentValue, bool enableAnimation = true)
Parameters
| Type | Name | Description |
|---|---|---|
| int | currentValue | The special current value. |
| bool | enableAnimation | Enable move with animation or not, the default value is true. |
Remarks
Please note that this class will be replaced with Scrollbar class in the near future.
Examples
CopyScrollBar scroll; scroll.MinValue = 0; scroll.MaxValue = 100; try { scroll.SetCurrentValue(50); } catch(ArgumentOutOfRangeException e) { Tizen.Log.Error(LogTag, "Failed to set current value : " + e.Message); }
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | Throw when current size is less than the min value, or greater than the max value. |