Class
RadScrollBarElement

Implements the basic functionality for scrolling.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
[ComVisible(false)]
public class RadScrollBarElement : RadItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode

Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadScrollBarElement

Implements: IBindableComponentIComponentICustomTypeDescriptorIDisposableINotifyPropertyChangedIShortcutProviderIStylableElementIStylableNodeISupportDragISupportDropISupportSystemSkin

Inherited Members RadItem.KeyDownEventRadItem.KeyPressEventRadItem.KeyUpEventRadItem.FocusCommandRadItem.ActionCommandRadItem.UseDefaultDisabledPaintPropertyRadItem.TextPropertyRadItem.TextOrientationPropertyRadItem.FlipTextPropertyRadItem.IsAddNewItemPropertyRadItem.ToolTipTextPropertyRadItem.EnableElementShadowPropertyRadItem.ShadowDepthPropertyRadItem.ShadowColorPropertyRadItem.IsPaintingRippleRadItem.EnableRippleAnimationPropertyRadItem.RippleAnimationColorPropertyRadItem.EnableFocusBorderPropertyRadItem.FocusBorderColorPropertyRadItem.FocusBorderWidthPropertyRadItem.EnableFocusBorderAnimationPropertyRadItem.EnableHighlightPropertyRadItem.HighlightColorPropertyRadItem.EnableBorderHighlightPropertyRadItem.BorderHighlightColorPropertyRadItem.BorderHighlightThicknessPropertyRadItem.VisualStatePropertyRadItem.SetOwnerCollection(RadItemOwnerCollection)RadItem.Select()RadItem.OnSelect()RadItem.Deselect()RadItem.OnDeselect()RadItem.DoKeyDown(KeyEventArgs)RadItem.DoKeyPress(KeyPressEventArgs)RadItem.DoKeyUp(KeyEventArgs)RadItem.OnKeyDown(KeyEventArgs)RadItem.OnKeyPress(KeyPressEventArgs)RadItem.OnKeyUp(KeyEventArgs)RadItem.RaiseBubbleEvent(RadElement, RoutedEventArgs)RadItem.OnPropertyChanging(RadPropertyChangingEventArgs)RadItem.OnEnabledChanged(RadPropertyChangedEventArgs)RadItem.OnTextChanging(TextChangingEventArgs)RadItem.OnTextChanged(EventArgs)RadItem.OnTextOrientationChanged(EventArgs)RadItem.OnFlipTextChanged(EventArgs)RadItem.PaintOverride(IGraphics, Rectangle, float, SizeF, bool)RadItem.OnMouseMove(MouseEventArgs)RadItem.StartRippleAnimation(MouseEventArgs)RadItem.UpdateFocusBorder(bool)RadItem.ContainsText()RadItem.ShouldSerializeProperty(PropertyDescriptor)RadItem.ProcessDialogKey(Keys)RadItem.ProcessCmdKey(ref Message, Keys)RadItem.RaiseKeyDown(KeyEventArgs)RadItem.RaiseKeyPress(KeyPressEventArgs)RadItem.RaiseKeyUp(KeyEventArgs)RadItem.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadItem.CallOnGesture(GestureEventArgs)RadItem.OnGesture(GestureEventArgs)RadItem.OnTwoFingerTapGesture(GestureEventArgs)RadItem.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadItem.OnRotateGesture(RotateGestureEventArgs)RadItem.OnZoomGesture(ZoomGestureEventArgs)RadItem.CanDragCore(Point)RadItem.GetDragContextCore()RadItem.GetDragHintCore()RadItem.ProcessDragDrop(Point, ISupportDrag)RadItem.ProcessDragOver(Point, ISupportDrag)RadItem.ProcessDragEnter(Point, ISupportDrag)RadItem.ProcessDragLeave(Point, ISupportDrag)RadItem.UpdateOnShortcutsChanged()RadItem.CanHandleShortcut(ShortcutEventArgs)RadItem.IsOnActiveForm(Control, bool)RadItem.SetThemeValueOverride(RadProperty, object, string)RadItem.SetThemeValueOverride(RadProperty, object, string, string)RadItem.SetThemeValueOverride(RadProperty, object, string, Type)RadItem.ResetThemeValueOverride(RadProperty)RadItem.ResetThemeValueOverride(RadProperty, string)RadItem.ResetThemeValueOverrides()RadItem.GetAvailableVisualStates()RadItem.ShouldFallbackToDefaultTheme()RadItem.UseDefaultDisabledPaintRadItem.TextOrientationRadItem.FlipTextRadItem.CanHaveOwnStyleRadItem.TextRadItem.SelectableRadItem.DefaultAutoToolTipRadItem.ShouldHandleMouseInputRadItem.KeyTipRadItem.ParentItemRadItem.ShortcutsHandlerRadItem.EnableElementShadowRadItem.ShadowDepthRadItem.ShadowColorRadItem.EnableRippleAnimationRadItem.RippleAnimationColorRadItem.EnableFocusBorderRadItem.FocusBorderColorRadItem.FocusBorderWidthRadItem.EnableFocusBorderAnimationRadItem.EnableHighlightRadItem.HighlightColorRadItem.EnableBorderHighlightRadItem.BorderHighlightColorRadItem.BorderHighlightThicknessRadItem.MnemonicTextRadItem.ToolTipTextRadItem.ThemeRoleRadItem.VisualStateRadItem.StateManagerRadItem.AllowDragRadItem.AllowDropRadItem.ShortcutsRadItem.AccessibleDescriptionRadItem.AccessibleNameRadItem.AccessibleRoleRadItem.TextChangingRadItem.TextChangedRadItem.TextOrientationChangedRadItem.FlipTextChangedRadItem.QueryAccessibilityHelpRadItem.KeyDownRadItem.KeyPressRadItem.KeyUpRadItem.ZoomGestureRadItem.RotateGestureRadItem.PanGestureRadItem.TwoFingerTapGestureRadItem.PressAndTapGestureRadComponentElement.ToString()RadComponentElement.GetService(Type)RadComponentElement.CanRaiseEventsRadComponentElement.ContainerRadComponentElement.DesignModeRadComponentElement.SiteRadComponentElement.DataBindingsVisualElement.DefaultSizePropertyVisualElement.ForeColorPropertyVisualElement.BackColorPropertyVisualElement.FontPropertyVisualElement.SmoothingModePropertyVisualElement.OpacityPropertyVisualElement.CustomFontPropertyVisualElement.CustomFontSizePropertyVisualElement.CustomFontStylePropertyVisualElement.OnFontChanged(EventArgs)VisualElement.PaintElement(IGraphics, float, SizeF)VisualElement.PaintChildren(IGraphics, Rectangle, float, SizeF, bool)VisualElement.PrePaintElement(IGraphics)VisualElement.PostPaintElement(IGraphics)VisualElement.GetScaledFont(float)VisualElement.GetScaledFont(float, Font)VisualElement.DefaultSizeVisualElement.ForeColorVisualElement.BackColorVisualElement.FontVisualElement.CustomFontVisualElement.CustomFontSizeVisualElement.CustomFontStyleVisualElement.SmoothingModeVisualElement.OpacityVisualElement.FontChangedRadElement.BoundsPropertyRadElement.BorderThicknessPropertyRadElement.PaddingPropertyRadElement.MarginPropertyRadElement.AlignmentPropertyRadElement.AutoSizeModePropertyRadElement.FitToSizeModePropertyRadElement.MinSizePropertyRadElement.EnabledPropertyRadElement.CanFocusPropertyRadElement.IsItemFocusedPropertyRadElement.IsFocusedPropertyRadElement.IsMouseOverPropertyRadElement.IsMouseOverElementPropertyRadElement.IsMouseDownPropertyRadElement.ShouldPaintPropertyRadElement.VisibilityPropertyRadElement.NamePropertyRadElement.ClassPropertyRadElement.ClipDrawingPropertyRadElement.ShapePropertyRadElement.MouseClickedEventRadElement.MouseDoubleClickedEventRadElement.MouseDownEventRadElement.MouseUpEventRadElement.MouseWheelEventRadElement.ChildElementAddedEventRadElement.ParentChangedEventRadElement.BoundsChangedEventRadElement.VisibilityChangingEventRadElement.EnabledChangedEventRadElement.ControlChangedEventRadElement.BackgroundShapePropertyRadElement.BackgroundShapePaintModePropertyRadElement.ContainsFocusPropertyRadElement.ContainsMousePropertyRadElement.MaxSizePropertyRadElement.RightToLeftPropertyRadElement.AutoSizePropertyRadElement.ZIndexPropertyRadElement.AngleTransformPropertyRadElement.ScaleTransformPropertyRadElement.PositionOffsetPropertyRadElement.TagPropertyRadElement.StretchHorizontallyPropertyRadElement.StretchVerticallyPropertyRadElement.UseCompatibleTextRenderingPropertyRadElement.ClickModePropertyRadElement.styleVersionRadElement.paintSystemSkinRadElement.SetPropertyValueCommandRadElement.GetPropertyValueCommandRadElement.StylePropertyRadElement.CallCreateChildElements()RadElement.SuspendReferenceUpdate()RadElement.ResumeReferenceUpdate()RadElement.OnLoad(bool)RadElement.LoadCore()RadElement.OnUnload(ComponentThemableElementTree, bool)RadElement.UnloadCore(ComponentThemableElementTree)RadElement.OnUnloaded(ComponentThemableElementTree)RadElement.OnElementTreeChanged(ComponentThemableElementTree)RadElement.OnBeginDispose()RadElement.SetParent(RadElement)RadElement.OnParentChanged(RadElement)RadElement.UpdateReferences(ComponentThemableElementTree, bool, bool)RadElement.ResetLayout(bool)RadElement.HasInvisibleAncestor()RadElement.ResetLayoutCore()RadElement.InvalidateArrange()RadElement.InvalidateArrange(bool)RadElement.InvalidateMeasure()RadElement.InvalidateMeasure(bool)RadElement.UpdateLayout()RadElement.SuspendLayout()RadElement.SuspendLayout(bool)RadElement.ResumeLayout(bool)RadElement.ResumeLayout(bool, bool)RadElement.Arrange(RectangleF)RadElement.Measure(SizeF)RadElement.SetBounds(Rectangle)RadElement.SetBounds(int, int, int, int)RadElement.GetBoundingRectangle(Size)RadElement.GetBoundingRectangle(Rectangle)RadElement.GetDesiredSize(bool)RadElement.PointToScreen(Point)RadElement.PointFromScreen(Point)RadElement.PointToControl(Point)RadElement.PointFromControl(Point)RadElement.LocationToControl()RadElement.RectangleToScreen(Rectangle)RadElement.HitTest(Point)RadElement.OnRenderSizeChanged(SizeChangedInfo)RadElement.OnChildDesiredSizeChanged(RadElement)RadElement.OnLayoutPropertyChanged(RadPropertyChangedEventArgs)RadElement.ArrangeCore(RectangleF)RadElement.MeasureCore(SizeF)RadElement.ShouldArrangeChild(RadElement)RadElement.ShouldMeasureChild(RadElement)RadElement.MeasureChildren(SizeF)RadElement.GetArrangeRect(RectangleF)RadElement.CanExecuteLayoutOperation()RadElement.CalcLayoutOffset(PointF)RadElement.LockBounds()RadElement.UnlockBounds()RadElement.SetBoundsCore(Rectangle)RadElement.IsInValidState(bool)RadElement.Invalidate()RadElement.Invalidate(bool)RadElement.GetInvalidateBounds()RadElement.NotifyInvalidate(RadElement)RadElement.OnTransformationInvalidated()RadElement.PerformLayoutTransformation(ref RadMatrix)RadElement.PerformPaintTransformation(ref RadMatrix)RadElement.IsInGetAsBitmap()RadElement.PaintBackgroundShape(IGraphics)RadElement.PostPaintChildren(IGraphics, Rectangle, float, SizeF)RadElement.PaintChild(RadElement, IGraphics, Rectangle, float, SizeF, bool)RadElement.PaintShadow(RadElement, IGraphics)RadElement.PaintShadowCore(Graphics, Rectangle, RadItem)RadElement.GetShadowRect(ref Rectangle, int)RadElement.PaintFocusCues(IGraphics, Rectangle)RadElement.GetAsBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Rectangle, Brush, float, SizeF)RadElement.GetAsBitmapEx(Color, float, SizeF)RadElement.GetAsBitmapEx(Brush, float, SizeF)RadElement.GetAsBitmap(Brush, float, SizeF)RadElement.IsInVisibleClipBounds(Rectangle)RadElement.SetClipping(Graphics)RadElement.GetClipRect()RadElement.GetFocusRect()RadElement.GetCurrentShape()RadElement.GetPaintRectangle(float, float, SizeF)RadElement.GetPatchedRect(RectangleF, float, SizeF)RadElement.GetSystemSkinPaintBounds()RadElement.OnUseSystemSkinChanged(EventArgs)RadElement.ShouldPaintSystemSkin()RadElement.ComposeShouldPaintSystemSkin()RadElement.GetStylablePropertiesFilter()RadElement.ResetStyleSettings(bool)RadElement.ResetStyleSettings(bool, RadProperty)RadElement.ProcessBehaviors(RadPropertyChangedEventArgs)RadElement.AddBehavior(PropertyChangeBehavior)RadElement.GetBehaviors()RadElement.RemoveBehavior(PropertyChangeBehavior)RadElement.ClearBehaviors()RadElement.AddRangeBehavior(PropertyChangeBehaviorCollection)RadElement.SetThemeApplied(bool)RadElement.OnStyleChanged(RadPropertyChangedEventArgs)RadElement.UnapplyStyle()RadElement.RemoveRangeBehaviors(PropertyChangeBehaviorCollection)RadElement.RemoveBehaviors(PropertyChangeBehavior)RadElement.RemoveRangeRoutedEventBehaviors(RoutedEventBehaviorCollection)RadElement.GetThemeEffectiveType()RadElement.GetChildrenByType(Type)RadElement.GetChildrenByBaseType(Type)RadElement.FindAncestorByThemeEffectiveType(Type)RadElement.FindAncestor<T>()RadElement.IsAncestorOf(RadElement)RadElement.FindDescendant<T>()RadElement.FindDescendant(Predicate<RadElement>)RadElement.FindDescendant(Type)RadElement.EnumDescendants(TreeTraversalMode)RadElement.EnumDescendants(Predicate<RadElement>, TreeTraversalMode)RadElement.EnumDescendants(Filter, TreeTraversalMode)RadElement.GetDescendants(Predicate<RadElement>, TreeTraversalMode)RadElement.GetDescendants(Filter, TreeTraversalMode)RadElement.GetAncestors(Filter)RadElement.GetAncestors(Predicate<RadElement>)RadElement.RaiseRoutedEvent(RadElement, RoutedEventArgs)RadElement.RaiseTunnelEvent(RadElement, RoutedEventArgs)RadElement.OnTunnelEvent(RadElement, RoutedEventArgs)RadElement.OnBubbleEvent(RadElement, RoutedEventArgs)RadElement.IsEventInProcess(RaisedRoutedEvent)RadElement.RegisterRoutedEvent(string, Type)RadElement.GetRegisterRoutedEvent(string, Type)RadElement.GetRegisterRoutedEvent(string, string)RadElement.GetRegisterRoutedEvent(string)RadElement.OnChildrenChanged(RadElement, ItemsChangeOperation)RadElement.GetChildren(ChildrenListOptions)RadElement.SendToBack()RadElement.BringToFront()RadElement.IsChildOf(RadElement)RadElement.Focus()RadElement.Focus(bool)RadElement.SetFocusPropertySafe(bool)RadElement.KillFocus()RadElement.OnCLREventsRise(RoutedEventArgs)RadElement.OnMouseHover(EventArgs)RadElement.OnParentEnabledChanged(RadPropertyChangedEventArgs)RadElement.OnLostMouseCapture(MouseEventArgs)RadElement.OnClick(EventArgs)RadElement.OnDoubleClick(EventArgs)RadElement.OnMouseEnter(EventArgs)RadElement.PerformClick()RadElement.OnMouseWheel(MouseEventArgs)RadElement.DoMouseWheel(MouseEventArgs)RadElement.DoClick(EventArgs)RadElement.DoDoubleClick(EventArgs)RadElement.IsInputKey(InputKeyEventArgs)RadElement.MouseEventArgsFromControl(MouseEventArgs)RadElement.DoMouseDown(MouseEventArgs)RadElement.DoMouseUp(MouseEventArgs)RadElement.DoMouseMove(MouseEventArgs)RadElement.ShowScreenTip(ScreenTipNeededEventArgs)RadElement.HideScreenTip()RadElement.DoMouseHover(EventArgs)RadElement.OnShowScreenTip(ComponentInputBehavior)RadElement.RaiseClick(EventArgs)RadElement.RaiseDoubleClick(EventArgs)RadElement.RaiseMouseWheel(MouseEventArgs)RadElement.UpdateContainsFocus(bool)RadElement.DoMouseEnter(EventArgs)RadElement.DoMouseLeave(EventArgs)RadElement.GetValue(RadProperty)RadElement.AddStylePropertySetting(IPropertySetting)RadElement.SetValueCore(RadPropertyValue, object, object, ValueSource)RadElement.NotifyChildren(RadPropertyChangedEventArgs)RadElement.OnBoundsChanged(RadPropertyChangedEventArgs)RadElement.OnLocationChanged(RadPropertyChangedEventArgs)RadElement.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)RadElement.CanRaisePropertyChangeNotifications(RadPropertyValue)RadElement.IsPropertyCancelable(RadPropertyMetadata)RadElement.OnParentPropertyChanged(RadPropertyChangedEventArgs)RadElement.PerformDispose(bool)RadElement.DisposeChildren()RadElement.GetStylableChildrenHierarchy()RadElement.GetStylableChildren()RadElement.GetClientRectangle(SizeF)RadElement.GetBorderThickness(BorderPrimitive)RadElement.DpiScaleChanged(SizeF)RadElement.ElementStateRadElement.DesiredSizeRadElement.IsLayoutSuspendedRadElement.BoundingRectangleRadElement.ControlBoundingRectangleRadElement.BypassLayoutPoliciesRadElement.IsArrangeValidRadElement.IsMeasureValidRadElement.TreeLevelRadElement.TransformRadElement.TotalTransformRadElement.ShouldPaintUsingParentShapeRadElement.UseSystemSkinRadElement.PropagateStyleToChildrenRadElement.ThemeEffectiveTypeRadElement.ElementTreeRadElement.ChildrenRadElement.ChildrenHierarchyRadElement.ParentRadElement.RoutedEventBehaviorsRadElement.LayoutableChildrenCountRadElement.ContainsFocusRadElement.NotifyParentOnMouseInputRadElement.IsAbleToRespondToMouseEventsRadElement.AutoSizeRadElement.BoundsRadElement.LocationRadElement.SizeRadElement.BorderThicknessRadElement.PaddingRadElement.MarginRadElement.AlignmentRadElement.AutoSizeModeRadElement.FitToSizeModeRadElement.EnabledRadElement.CanFocusRadElement.IsFocusedRadElement.IsMouseOverRadElement.IsMouseOverElementRadElement.IsMouseDownRadElement.InvalidateChildrenOnChildChangedRadElement.ShouldPaintRadElement.VisibilityRadElement.IsElementVisibleRadElement.NameRadElement.ClassRadElement.ClipDrawingRadElement.ShapeRadElement.MinSizeRadElement.MaxSizeRadElement.ZIndexRadElement.RightToLeftRadElement.UseCompatibleTextRenderingRadElement.BackgroundShapeRadElement.BackgroundShapePaintModeRadElement.ContainsMouseRadElement.CaptureRadElement.ScaleTransformRadElement.AngleTransformRadElement.PositionOffsetRadElement.SerializePropertiesRadElement.SerializeElementRadElement.SerializeChildrenRadElement.RenderingMaxFramerateRadElement.IsThemeAppliedRadElement.ShouldApplyThemeRadElement.UseCenteredAngleTransformRadElement.TagRadElement.StretchHorizontallyRadElement.StretchVerticallyRadElement.ClickModeRadElement.DoubleClickEnabledRadElement.CaptureOnMouseDownRadElement.IsItemHoveredRadElement.StyleRadElement.AutoToolTipRadElement.ScreenTipRadElement.AutoNumberKeyTipRadElement.DpiScaleFactorRadElement.LayoutUpdatedRadElement.MouseHoverRadElement.MouseMoveRadElement.MouseDownRadElement.MouseUpRadElement.ClickRadElement.DoubleClickRadElement.MouseEnterRadElement.MouseWheelRadElement.EnabledChangedRadElement.MouseLeaveRadElement.ChildrenChangedRadElement.LostMouseCaptureRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.GetInheritedValue(RadProperty)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing

Constructors

RadScrollBarElement()

Declaration

cs-api-definition
public RadScrollBarElement()

Fields

DefaultScrollType

Declaration

cs-api-definition
public const ScrollType DefaultScrollType = Horizontal

Field Value

ScrollType

GradientAngleCorrectionProperty

Identifies the GradientAngleCorrection dependency property.

Declaration

cs-api-definition
public static readonly RadProperty GradientAngleCorrectionProperty

Field Value

RadProperty

HorizontalScrollBarHeight

Gets or sets the default height for horizontal scroll bars.

Declaration

cs-api-definition
public static int HorizontalScrollBarHeight

Field Value

int

IsMouseOverScrollBarProperty

Identifies the IsMouseOverScrollBar dependency property.

Declaration

cs-api-definition
public static readonly RadProperty IsMouseOverScrollBarProperty

Field Value

RadProperty

MinThumbLengthProperty

Identifies the MinThumbLength dependency property.

Declaration

cs-api-definition
public static readonly RadProperty MinThumbLengthProperty

Field Value

RadProperty

PressedProperty

Identifies the Pressed dependency property.

Declaration

cs-api-definition
public static readonly RadProperty PressedProperty

Field Value

RadProperty

ScrollTypeProperty

Identifies the ScrollType dependency property.

Declaration

cs-api-definition
public static readonly RadProperty ScrollTypeProperty

Field Value

RadProperty

ThumbLengthProportionProperty

Identifies the ThumbLengthProportion dependency property.

Declaration

cs-api-definition
public static readonly RadProperty ThumbLengthProportionProperty

Field Value

RadProperty

VerticalScrollBarWidth

Gets or sets the default width for vertical scroll bars.

Declaration

cs-api-definition
public static int VerticalScrollBarWidth

Field Value

int

Properties

BorderElement

Declaration

cs-api-definition
public BorderPrimitive BorderElement { get; }

Property Value

BorderPrimitive

ClampValue

Indicates whether invalid values should be clamped or an exception should be thrown

Declaration

cs-api-definition
public bool ClampValue { get; set; }

Property Value

bool

FillElement

Declaration

cs-api-definition
public FillPrimitive FillElement { get; }

Property Value

FillPrimitive

FirstButton

Gets the first button element of this scrollbar

Declaration

cs-api-definition
public ScrollBarButton FirstButton { get; }

Property Value

ScrollBarButton

GradientAngleCorrection

Controls the angle that the fill primitive will be rotated when switching from horizontal to vertical orientation

Declaration

cs-api-definition
public float GradientAngleCorrection { get; set; }

Property Value

float

LargeChange

Gets or sets a value to be added to or subtracted from the Value property when the scroll thumb is moved a large distance.

Declaration

cs-api-definition
public int LargeChange { get; set; }

Property Value

int

A numeric value. The default value is 10.

Remarks

When the user presses the PAGE UP or PAGE DOWN key, clicks in the scroll bar track on either side of the scroll thumb, or calls one of the PageXXX() functions, the Value property changes according to the value set in the LargeChange property.

Maximum

Gets or sets the upper limit of the scrollable range.

Declaration

cs-api-definition
public int Maximum { get; set; }

Property Value

int

A numeric value. The default value is 100.

Remarks

NOTE: The value of a scroll bar cannot reach its maximum value through user interaction at run time. The maximum value that can be reached is equal to the Maximum property value minus the LargeChange property value plus 1. The maximum value can only be reached programmatically.

MinThumbLength

Gets or sets the minimum length of the scrolling thumb. See ThumbLength for more information about thumb length.

Declaration

cs-api-definition
public int MinThumbLength { get; set; }

Property Value

int

An integer value that gives the minimum thumb length. It is taken into account no matter if the thumb length is calculated automatically or the thumb length is set explicitly. The thumb length could be smaller than MinThumbLength if there is no space in the scroll bar.

Minimum

Gets or sets the lower limit for the values of the scrollable range.

Declaration

cs-api-definition
public int Minimum { get; set; }

Property Value

int

A numeric value. The default value is 0.

ScrollTimerDelay

Gets or sets the scroll timer delay

Declaration

cs-api-definition
[Browsable(false)]
public int ScrollTimerDelay { get; set; }

Property Value

int

ScrollType

Gets or sets the ScrollType - it could be horizontal or vertical.

Declaration

cs-api-definition
public ScrollType ScrollType { get; set; }

Property Value

ScrollType

SecondButton

Gets the second button element of this scrollbar

Declaration

cs-api-definition
public ScrollBarButton SecondButton { get; }

Property Value

ScrollBarButton

SmallChange

Gets or sets the value to be added to or subtracted from the Value property when the scroll thumb is moved a small distance.

Declaration

cs-api-definition
public int SmallChange { get; set; }

Property Value

int

A numeric value. The default value is 1.

Remarks

When the user presses one of the arrow keys, clicks one of the scroll bar buttons or calls one of the LineXXX() functions, the Value property changes according to the value set in the SmallChange property.

ThumbElement

Gets the thumb element of this scrollbar

Declaration

cs-api-definition
[Browsable(false)]
public ScrollBarThumb ThumbElement { get; }

Property Value

ScrollBarThumb

ThumbLength

Gets the length of the scrolling thumb. Thumb length is the thumb's height for vertical scroll bar and the thumb's width for horizontal scroll bar.

Declaration

cs-api-definition
public int ThumbLength { get; }

Property Value

int

ThumbLengthProportion

Gets or sets a value between 0.0 and 1.0 that indicates what part of the scrollable area can be occupied by the thumb. If the value is 0.0 then the thumb should be with length 0 but the property MinThumbLength will cause the thumb to be larger. If the value is 1.0 the thumb takes the whole area between the two scrolling buttons. Negative value means that the thumb length should be calculated automatically based on Minimum, Maximum and LargeChange values.

Declaration

cs-api-definition
public double ThumbLengthProportion { get; set; }

Property Value

double

Value

Gets or sets a numeric value that represents the current position of the scroll thumb on the scroll bar.

Declaration

cs-api-definition
public int Value { get; set; }

Property Value

int

A numeric value that is within the Minimum and Maximum range. The default value is 0.

Methods

ArrangeOverride(SizeF)

Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.

Declaration

cs-api-definition
protected override SizeF ArrangeOverride(SizeF finalSize)

Parameters

finalSize

SizeF

The size that is available for element.

Returns

SizeF

The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.

Overrides RadElement.ArrangeOverride(SizeF)

Remarks

In this method call to the Arrange method of each child must be made.

CreateChildElements()

Called by the element when constructed. Allows inheritors to build the element tree.

Declaration

cs-api-definition
protected override void CreateChildElements()

Overrides RadElement.CreateChildElements()

DisposeManagedResources()

Releases managed resources used by this element.

Declaration

cs-api-definition
protected override void DisposeManagedResources()

Overrides RadItem.DisposeManagedResources()

GetParameters()

Retrieves the srolling parameters.

Declaration

cs-api-definition
public ScrollBarParameters GetParameters()

Returns

ScrollBarParameters

GetVistaVisualStyle()

Gets the Vista visual style element for this scroll bar.

Declaration

cs-api-definition
public override VisualStyleElement GetVistaVisualStyle()

Returns

VisualStyleElement

The Vista visual style element.

Overrides RadElement.GetVistaVisualStyle()

GetXPVisualStyle()

Gets the XP visual style element for this scroll bar.

Declaration

cs-api-definition
public override VisualStyleElement GetXPVisualStyle()

Returns

VisualStyleElement

The XP visual style element.

Overrides RadElement.GetXPVisualStyle()

InitializeFields()

Initializes the fields of this instance with their default values.

Declaration

cs-api-definition
protected override void InitializeFields()

Overrides RadItem.InitializeFields()

InitializeSystemSkinPaint()

Performs initialization when the element is first-time painted using system skin.

Declaration

cs-api-definition
protected override void InitializeSystemSkinPaint()

Overrides RadElement.InitializeSystemSkinPaint()

MeasureOverride(SizeF)

Measures the space required by the RadElement

Used by the layout system.

Declaration

cs-api-definition
protected override SizeF MeasureOverride(SizeF availableSize)

Parameters

availableSize

SizeF

The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)

Returns

SizeF

The minimum size required by the element to be completely visible. Cannot be infinity.

Overrides RadElement.MeasureOverride(SizeF)

Remarks

In this method call to the Measure method of each child must be made.

OnLoaded()

Called when the element has been successfully loaded. That includes loading of all its children as well.

Declaration

cs-api-definition
protected override void OnLoaded()

Overrides RadElement.OnLoaded()

OnMouseDown(MouseEventArgs)

Called when a mouse button is pressed down over the item.

Declaration

cs-api-definition
protected override void OnMouseDown(MouseEventArgs e)

Parameters

e

MouseEventArgs

The mouse event arguments.

Overrides RadItem.OnMouseDown(MouseEventArgs)

OnMouseLeave(EventArgs)

Declaration

cs-api-definition
protected override void OnMouseLeave(EventArgs e)

Parameters

e

EventArgs

Overrides RadItem.OnMouseLeave(EventArgs)

OnMouseUp(MouseEventArgs)

Called when a mouse button is released over the item.

Declaration

cs-api-definition
protected override void OnMouseUp(MouseEventArgs e)

Parameters

e

MouseEventArgs

The mouse event arguments.

Overrides RadItem.OnMouseUp(MouseEventArgs)

OnPanGesture(PanGestureEventArgs)

Fires the PanGesture event.

Declaration

cs-api-definition
protected override void OnPanGesture(PanGestureEventArgs args)

Parameters

args

PanGestureEventArgs

The arguments for the PanGesture event.

Overrides RadItem.OnPanGesture(PanGestureEventArgs)

OnPropertyChanged(RadPropertyChangedEventArgs)

Called when a property value has changed, handling item-specific property change logic including text, visual state, and animation properties.

Declaration

cs-api-definition
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

The property changed event arguments.

Overrides RadItem.OnPropertyChanged(RadPropertyChangedEventArgs)

OnScroll(ScrollEventArgs)

Declaration

cs-api-definition
protected virtual void OnScroll(ScrollEventArgs args)

Parameters

args

ScrollEventArgs

OnScrollParameterChanged()

Declaration

cs-api-definition
protected virtual void OnScrollParameterChanged()

OnValueChanged()

Declaration

cs-api-definition
protected virtual void OnValueChanged()

OnValueChanged(int, int)

Declaration

cs-api-definition
protected virtual void OnValueChanged(int oldValue, int newValue)

Parameters

oldValue

int

newValue

int

PaintElementSkin(IGraphics)

Provides a routine to paint element's content when system skin appearance is desired.

Declaration

cs-api-definition
protected override void PaintElementSkin(IGraphics graphics)

Parameters

graphics

IGraphics

Overrides RadElement.PaintElementSkin(IGraphics)

PaintHorizontalVisualStylesElements()

Declaration

cs-api-definition
protected virtual void PaintHorizontalVisualStylesElements()

PaintVerticalVisualStyleElements()

Declaration

cs-api-definition
protected virtual void PaintVerticalVisualStyleElements()

PaintVisualStyleElement(Graphics, VisualStyleElement, Rectangle)

Declaration

cs-api-definition
protected virtual void PaintVisualStyleElement(Graphics graphics, VisualStyleElement element, Rectangle bounds)

Parameters

graphics

Graphics

element

VisualStyleElement

bounds

Rectangle

PerformFirst()

Simulate scrolling with positioning the thumb on its first position. Unlike setting property Value this function fires scrolling events.

Declaration

cs-api-definition
public void PerformFirst()

PerformLargeDecrement(int)

Simulate scrolling - just like the top / left area according the thumb is pressed. Unlike setting property Value this function fires scrolling events.

Declaration

cs-api-definition
public void PerformLargeDecrement(int numSteps)

Parameters

numSteps

int

Value is decremented with (numSteps * LargeChange)

PerformLargeIncrement(int)

Simulate scrolling - just like the bottom / right area according the thumb is pressed. Unlike setting property Value this function fires scrolling events.

Declaration

cs-api-definition
public void PerformLargeIncrement(int numSteps)

Parameters

numSteps

int

Value is incremented with (numSteps * LargeChange)

PerformLast()

Simulate scrolling with positioning the thumb on its last position. Unlike setting property Value this function fires scrolling events.

Declaration

cs-api-definition
public void PerformLast()

PerformScrollTo(Point)

Scrolls just like the thumb is dragged at given position

Declaration

cs-api-definition
public void PerformScrollTo(Point position)

Parameters

position

Point

Position of the thumb (in screen coordinates).

PerformSmallDecrement(int)

Simulate scrolling - just like the top / left button is pressed. Unlike setting property Value this function fires scrolling events.

Declaration

cs-api-definition
public void PerformSmallDecrement(int numSteps)

Parameters

numSteps

int

Value is decremented with (numSteps * SmallChange)

PerformSmallIncrement(int)

Simulate scrolling - just like the bottom / right button is pressed. Unlike setting property Value this function fires scrolling events.

Declaration

cs-api-definition
public void PerformSmallIncrement(int numSteps)

Parameters

numSteps

int

Value is incremented with (numSteps * SmallChange)

SetParameters(ScrollBarParameters)

Sets the given scroll parameters.

Declaration

cs-api-definition
public void SetParameters(ScrollBarParameters parameters)

Parameters

parameters

ScrollBarParameters

ShouldPaintChild(RadElement)

Declaration

cs-api-definition
protected override bool ShouldPaintChild(RadElement element)

Parameters

element

RadElement

Returns

bool

Overrides RadElement.ShouldPaintChild(RadElement)

UnitializeSystemSkinPaint()

Performs cleanup when system skin painting is no longer used.

Declaration

cs-api-definition
protected override void UnitializeSystemSkinPaint()

Overrides RadElement.UnitializeSystemSkinPaint()

Events

Scroll

Occurs when the scroll thumb has been moved by either a mouse or keyboard action.

Declaration

cs-api-definition
public event ScrollEventHandler Scroll

Event Value

ScrollEventHandler

ScrollParameterChanged

Occurs when a property that affects the scrolling is changed. See ScrollBarParameters for more information on which properties affect the scrolling.

Declaration

cs-api-definition
public event EventHandler ScrollParameterChanged

Event Value

EventHandler

ValueChanged

Occurs when the Value property is changed, either by a Scroll event or programmatically.

Declaration

cs-api-definition
public event EventHandler ValueChanged

Event Value

EventHandler