Class RadCollapsiblePanel
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[TelerikToolboxCategory("Containers")]
public class RadCollapsiblePanel : RadControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
RadCollapsiblePanel()
Initializes a new instance of the RadCollapsiblePanel class.
Declaration
public RadCollapsiblePanel()
Properties
AnimationEasingType
Gets or sets the easing type to be applied to the animation when expanding or collapsing
Declaration
public RadEasingType AnimationEasingType { get; set; }
Property Value
RadEasingType
The animation easing type. |
AnimationFrames
Gets or sets the animation frames.
Declaration
public int AnimationFrames { get; set; }
Property Value
System.Int32
The animation frames. |
AnimationInterval
Gets or sets the animation interval.
Declaration
public int AnimationInterval { get; set; }
Property Value
System.Int32
The animation frames. |
AnimationType
Gets or sets the type of the expand or collapse animation.
Declaration
public CollapsiblePanelAnimationType AnimationType { get; set; }
Property Value
CollapsiblePanelAnimationType
The type of the animation. |
BackColor
Gets or sets the BackColor of the control. This is actually the BackColor property of the root element.
Declaration
public override Color BackColor { get; set; }
Property Value
System.Drawing.Color
|
Overrides
CollapsiblePanelElement
Gets the collapsible panel element.
Declaration
public RadCollapsiblePanelElement CollapsiblePanelElement { get; }
Property Value
RadCollapsiblePanelElement
The collapsible panel element. |
ContentSizingMode
Gets or sets the content sizing mode.
Declaration
public CollapsiblePanelContentSizingMode ContentSizingMode { get; set; }
Property Value
CollapsiblePanelContentSizingMode
The content sizing mode. |
ControlsContainer
Gets the controls container.
Declaration
public CollapsiblePanelControlsContainer ControlsContainer { get; }
Property Value
CollapsiblePanelControlsContainer
The controls container. |
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. |
EnableAnimation
Gets or sets a value indicating whether to use animation to expand or collapse the control.
Declaration
public bool EnableAnimation { get; set; }
Property Value
System.Boolean
|
ExpandDirection
Gets or sets the expand direction.
Declaration
public RadDirection ExpandDirection { get; set; }
Property Value
RadDirection
The expand direction. |
HeaderText
Gets or sets the header text.
Declaration
public string HeaderText { get; set; }
Property Value
System.String
The header text. |
HorizontalHeaderAlignment
Gets or sets the horizontal header alignment.
Declaration
public RadHorizontalAlignment HorizontalHeaderAlignment { get; set; }
Property Value
RadHorizontalAlignment
The horizontal header alignment. |
IsAnimating
Gets a value indicating whether the control is currently animating.
Declaration
public bool IsAnimating { get; }
Property Value
System.Boolean
|
IsExpanded
Gets a or Sets value indicating whether the control is expanded.
Declaration
public bool IsExpanded { get; set; }
Property Value
System.Boolean
|
OwnerBoundsCache
This value is set when the control is about to be collapsed and is used to restore the control's size when expanding. It should only be set by the control itself.
Declaration
public Rectangle OwnerBoundsCache { get; set; }
Property Value
System.Drawing.Rectangle
|
PanelContainer
Gets the panel container which contains the controls of the RadCollapsiblePanel.
Declaration
public CollapsiblePanelPanelContainer PanelContainer { get; }
Property Value
CollapsiblePanelPanelContainer
The panel container. |
ShowHeaderLine
Gets or sets a value indicating whether to show a line primitive in the header.
Declaration
public bool ShowHeaderLine { get; set; }
Property Value
System.Boolean
|
Text
This property is not relevant for this class.
Declaration
public override string Text { get; set; }
Property Value
System.String
|
Overrides
VerticalHeaderAlignment
Gets or sets the vertical header alignment.
Declaration
public RadVerticalAlignment VerticalHeaderAlignment { get; set; }
Property Value
RadVerticalAlignment
The vertical header alignment. |
Methods
Collapse()
Collapses the control. Will not have effect if the control is already collapsed or is animating. Can be canceled from the Collapsing event.
Declaration
public void Collapse()
CreateChildItems(RadElement)
Creates the child items.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement
parent
The parent. |
Overrides
CreateCollapsiblePanelElement()
Creates the collapsible panel element.
Declaration
protected virtual RadCollapsiblePanelElement CreateCollapsiblePanelElement()
Returns
RadCollapsiblePanelElement
|
CreateControlsContainer()
Creates the controls container which holds the controls.
Declaration
protected virtual CollapsiblePanelControlsContainer CreateControlsContainer()
Returns
CollapsiblePanelControlsContainer
|
CreateControlsInstance()
Creates a new instance of the control collection for the control.
Declaration
protected override Control.ControlCollection CreateControlsInstance()
Returns
System.Windows.Forms.Control.ControlCollection
A new instance of System.Windows.Forms.Control.ControlCollection assigned to the control. |
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
Overrides
Expand()
Expands the control. Will not have effect if the control is already expanded or is animating. Can be canceled from the Expanding event.
Declaration
public void Expand()
InitializeInternalContainer()
Initializes the internal container which holds the controls.
Declaration
protected virtual void InitializeInternalContainer()
OnLoad(Size)
Declaration
protected override void OnLoad(Size desiredSize)
Parameters
System.Drawing.Size
desiredSize
|
Overrides
OnRightToLeftChanged(EventArgs)
Raises the RightToLeftChanged event.
Declaration
protected override void OnRightToLeftChanged(EventArgs e)
Parameters
System.EventArgs
e
The System.EventArgs instance containing the event data. |
Overrides
OnThemeChanged()
ResetBackColorThemeOverrides()
Declaration
protected override void ResetBackColorThemeOverrides()
Overrides
ResetForeColorThemeOverrides()
Declaration
protected override void ResetForeColorThemeOverrides()
Overrides
ScaleControl(SizeF, BoundsSpecified)
Declaration
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
Parameters
System.Drawing.SizeF
factor
|
System.Windows.Forms.BoundsSpecified
specified
|
Overrides
SetBackColorThemeOverrides()
Declaration
protected override void SetBackColorThemeOverrides()
Overrides
SetForeColorThemeOverrides()
Declaration
protected override void SetForeColorThemeOverrides()
Overrides
ToggleExpandCollapse()
If the Control is expanded it will be collapsed and vice-versa.
Declaration
public void ToggleExpandCollapse()
ToggleExpandCollapse(Boolean, Boolean)
If the Control is expanded it will be collapsed and vice-versa.
Declaration
protected void ToggleExpandCollapse(bool ignoreIsExpanded, bool stopAnimations)
Parameters
System.Boolean
ignoreIsExpanded
if set to |
System.Boolean
stopAnimations
if set to |
Events
Collapsed
Occurs after the control is collapsed.
Declaration
public event EventHandler Collapsed
Event Type
System.EventHandler
|
Collapsing
Occurs before the control is collapsed.
Declaration
public event CancelEventHandler Collapsing
Event Type
System.ComponentModel.CancelEventHandler
|
Expanded
Occurs after the control is expanded.
Declaration
public event EventHandler Expanded
Event Type
System.EventHandler
|
Expanding
Occurs before the control is expanded.
Declaration
public event CancelEventHandler Expanding
Event Type
System.ComponentModel.CancelEventHandler
|