Class RadScrollablePanel
The RadScrollablePanel control can be used as a container for different UI elements. This control is powered by the Telerik Presentation Framework and supports gradient backgrounds, shapes and theming. This control supports also theming of the scrollbars.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[TelerikToolboxCategory("Containers")]
public class RadScrollablePanel : RadControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
RadScrollablePanel()
Declaration
public RadScrollablePanel()
Properties
AllowAutomaticScrollToControl
Gets or sets a value indicating whether the focused control inside the RadScrollablePanel will be automatically scrolled into view when gaining focus.
Declaration
public bool AllowAutomaticScrollToControl { get; set; }
Property Value
System.Boolean
|
AutoScroll
Declaration
public override bool AutoScroll { get; set; }
Property Value
System.Boolean
|
AutoScrollMargin
Declaration
public Size AutoScrollMargin { get; set; }
Property Value
System.Drawing.Size
|
AutoScrollMinSize
Declaration
public Size AutoScrollMinSize { get; set; }
Property Value
System.Drawing.Size
|
AutoScrollOffset
Declaration
public override Point AutoScrollOffset { get; set; }
Property Value
System.Drawing.Point
|
AutoScrollPosition
Declaration
public Point AutoScrollPosition { get; set; }
Property Value
System.Drawing.Point
|
DefaultSize
Gets the default size of the control.
Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size
The default System.Drawing.Size of the control. |
Remarks
The default Size of the control.
ForeColor
This property is not relevant for this class.
Declaration
public override Color ForeColor { get; set; }
Property Value
System.Drawing.Color
|
Overrides
HorizontalScrollbar
Gets the horizontal scrollbar of the control.
Declaration
public RadHScrollBar HorizontalScrollbar { get; }
Property Value
RadHScrollBar
|
HorizontalScrollBarState
Gets or sets the state of the horizontal scroll bar which indicates whether it will be always visible(AlwaysShow), always hidden(AlwaysHide) or determined by the content(AutoHide) - default
Declaration
public ScrollState HorizontalScrollBarState { get; set; }
Property Value
ScrollState
|
Padding
Declaration
public Padding Padding { get; set; }
Property Value
System.Windows.Forms.Padding
|
PanelContainer
Gets the container panel that holds all the components added to the panel.
Declaration
public virtual Panel PanelContainer { get; }
Property Value
System.Windows.Forms.Panel
|
PanelElement
Gets an instance of the RadScrollablePanelElement class which represents the main element of the control.
Declaration
public RadScrollablePanelElement PanelElement { get; }
Property Value
RadScrollablePanelElement
|
Text
This property is not relevant for this class.
Declaration
public override string Text { get; set; }
Property Value
System.String
|
Overrides
VerticalScrollbar
Gets the vertical scrollbar of the control.
Declaration
public RadVScrollBar VerticalScrollbar { get; }
Property Value
RadVScrollBar
|
VerticalScrollBarState
Gets or sets the state of the vertical scroll bar which indicates whether it will be always visible(AlwaysShow), always hidden(AlwaysHide) or determined by the content(AutoHide) - default
Declaration
public ScrollState VerticalScrollBarState { get; set; }
Property Value
ScrollState
|
Methods
AdjustSizingGrip()
Declaration
protected virtual void AdjustSizingGrip()
CreateChildItems(RadElement)
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement
parent
|
Overrides
CreateControlsInstance()
Declaration
protected override Control.ControlCollection CreateControlsInstance()
Returns
System.Windows.Forms.Control.ControlCollection
|
CreatePanelElement()
Declaration
protected virtual RadScrollablePanelElement CreatePanelElement()
Returns
RadScrollablePanelElement
|
CreateRootElement()
CreateScrollablePanelContainer()
Declaration
protected virtual RadScrollablePanelContainer CreateScrollablePanelContainer()
Returns
RadScrollablePanelContainer
|
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
Overrides
FitToChildControls()
Resizes the panel to fit its contents.
Declaration
public virtual void FitToChildControls()
GetContentMargin()
Calculates the non-client margin of the control based on the radius of the round rect shape.
Declaration
protected virtual Padding GetContentMargin()
Returns
System.Windows.Forms.Padding
An instance of the System.Windows.Forms.Padding struct which represents the left, top, right and bottom margin. |
GetSizingGripColor()
Declaration
protected virtual Color GetSizingGripColor()
Returns
System.Drawing.Color
|
InitializeInternalControls()
This method initializes the scrollbars and the container control.
Declaration
protected virtual void InitializeInternalControls()
InsertInternalControls()
This method inserts the scrollbars and the container in the Controls collection of this control.
Declaration
protected virtual void InsertInternalControls()
OnAutoScrollChanged()
Declaration
protected virtual void OnAutoScrollChanged()
OnHandleCreated(EventArgs)
Declaration
protected override void OnHandleCreated(EventArgs e)
Parameters
System.EventArgs
e
|
OnNotifyPropertyChanged(String)
Declaration
protected override void OnNotifyPropertyChanged(string propertyName)
Parameters
System.String
propertyName
|
Overrides
OnResize(EventArgs)
Declaration
protected override void OnResize(EventArgs e)
Parameters
System.EventArgs
e
|
OnRightToLeftChanged(EventArgs)
Declaration
protected override void OnRightToLeftChanged(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnThemeChanged()
ProcessAutoSizeChanged(Boolean)
Declaration
protected override void ProcessAutoSizeChanged(bool value)
Parameters
System.Boolean
value
|
Overrides
ResetBackColorThemeOverrides()
Declaration
protected override void ResetBackColorThemeOverrides()
Overrides
SetBackColorThemeOverrides()
Declaration
protected override void SetBackColorThemeOverrides()
Overrides
SynchronizeHScrollbar(Int32)
Declaration
protected virtual void SynchronizeHScrollbar(int value)
Parameters
System.Int32
value
|
SynchronizeScrollbars(Point)
Declaration
protected virtual void SynchronizeScrollbars(Point scrollPoint)
Parameters
System.Drawing.Point
scrollPoint
|
SynchronizeScrollbarsVisiblity()
Declaration
protected virtual void SynchronizeScrollbarsVisiblity()
SynchronizeVScrollbar(Int32)
Declaration
protected virtual void SynchronizeVScrollbar(int value)
Parameters
System.Int32
value
|