Class RadPanel
Used to group collections of controls.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[TelerikToolboxCategory("Containers")]
public class RadPanel : RadControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Remarks
A RadPanel is a control that contains other controls. You can use a RadPanel to group collections of controls such as a group control of radio buttons. If the RadPanel control's Enabled property is set to false, the controls contained within the RadPanel will also be disabled.
You can use the AutoScroll property to enable scroll bars in the RadPanel control. When the AutoScroll property is set to true, any controls located within the RadPanel (but outside of its visible region), can be scrolled to with the scroll bars provided.
The RadPanel control is displayed by default with border and a text (using TextPrimitive). There is a FillPrimitive which is transparent by default. It allows gradients to be used for background of the RadPanel.
Constructors
RadPanel()
Initializes new RadPanel
Declaration
public RadPanel()
Properties
AutoScrollToCurrentControl
Gets or set a value indicating whether panel will scroll automatically to show the currently focused control inside it.
Declaration
public bool AutoScrollToCurrentControl { get; set; }
Property Value
System.Boolean
|
CausesValidation
Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus.
Declaration
public bool CausesValidation { get; set; }
Property Value
System.Boolean
true if the control causes validation to be performed on any controls requiring validation when it receives focus; otherwise, false. |
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.
PanelElement
Gets the instance of RadPanelElement wrapped by this control. RadPanelElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadPanel.
Declaration
public RadPanelElement PanelElement { get; }
Property Value
RadPanelElement
|
Text
This property is not relevant for this class.
Declaration
public override string Text { get; set; }
Property Value
System.String
|
Overrides
TextAlignment
Gets or sets the alignment of the text within Panel's bounds.
Declaration
public ContentAlignment TextAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment
|
Methods
CreateChildItems(RadElement)
Creates the main panel element and adds it in the root element.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement
parent
|
Overrides
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
Overrides
OnControlAdded(ControlEventArgs)
Declaration
protected override void OnControlAdded(ControlEventArgs e)
Parameters
System.Windows.Forms.ControlEventArgs
e
|
OnControlRemoved(ControlEventArgs)
Declaration
protected override void OnControlRemoved(ControlEventArgs e)
Parameters
System.Windows.Forms.ControlEventArgs
e
|
OnLoad(Size)
Declaration
protected override void OnLoad(Size desiredSize)
Parameters
System.Drawing.Size
desiredSize
|
Overrides
OnTextChanged(EventArgs)
Declaration
protected override void OnTextChanged(EventArgs e)
Parameters
System.EventArgs
e
|
OnVisibleChanged(EventArgs)
Declaration
protected override void OnVisibleChanged(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
ProcessAutoSizeChanged(Boolean)
Declaration
protected override void ProcessAutoSizeChanged(bool value)
Parameters
System.Boolean
value
|
Overrides
ProcessMnemonic(Char)
Declaration
protected override bool ProcessMnemonic(char charCode)
Parameters
System.Char
charCode
|
Returns
System.Boolean
|
Overrides
ResetBackColorThemeOverrides()
Declaration
protected override void ResetBackColorThemeOverrides()
Overrides
ResetForeColorThemeOverrides()
Declaration
protected override void ResetForeColorThemeOverrides()
Overrides
ScrollToControl(Control)
Declaration
protected override Point ScrollToControl(Control activeControl)
Parameters
System.Windows.Forms.Control
activeControl
|
Returns
System.Drawing.Point
|
SetBackColorThemeOverrides()
Declaration
protected override void SetBackColorThemeOverrides()
Overrides
SetForeColorThemeOverrides()
Declaration
protected override void SetForeColorThemeOverrides()