Class
RadLayoutControl

Represents a container control that automatically arranges child controls in a consistent layout and scales their positioning as the control size changes. Provides runtime customization capabilities and layout serialization support.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Containers")]
[Docking(DockingBehavior.Ask)]
public class RadLayoutControl : RadNCEnabledControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IMessageFilter

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadNonClientUIControlRadNCEnabledControlRadLayoutControl

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIDisposableIDropTargetILayoutHandlerIMessageFilterINotifyPropertyChangedISupportInitializeISupportInitializeNotificationISynchronizeInvokeIWin32Window

Inherited Members RadNCEnabledControl.WndProc(ref Message)RadNCEnabledControl.WmNCHitTest(ref Message)RadNCEnabledControl.IconCaptionElementRadNCEnabledControl.MinimizeButtonElementRadNCEnabledControl.MaximizeButtonElementRadNCEnabledControl.HelpButtonElementRadNCEnabledControl.SystemButtonsElementRadNCEnabledControl.TextCaptionElementRadControl.isResizing2RadControl.isDisposing2RadControl.invalidResizeRectRadControl.isAccessibilityRequestedRadControl.Construct()RadControl.CreateBehavior()RadControl.CreateRootElement()RadControl.InitializeRootElement(RootRadElement)RadControl.LoadElementTree()RadControl.LoadElementTree(Size)RadControl.OnKeyDown(KeyEventArgs)RadControl.OnKeyUp(KeyEventArgs)RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)RadControl.OnKeyPress(KeyPressEventArgs)RadControl.OnClick(EventArgs)RadControl.OnDoubleClick(EventArgs)RadControl.OnMouseEnter(EventArgs)RadControl.OnMouseLeave(EventArgs)RadControl.OnMouseHover(EventArgs)RadControl.OnMouseCaptureChanged(EventArgs)RadControl.OnGotFocus(EventArgs)RadControl.OnLostFocus(EventArgs)RadControl.OnCreateControl()RadControl.OnParentChanged(EventArgs)RadControl.OnVisibleChanged(EventArgs)RadControl.OnFontChanged(EventArgs)RadControl.OnForeColorChanged(EventArgs)RadControl.OnBackColorChanged(EventArgs)RadControl.OnEnabledChanged(EventArgs)RadControl.OnBindingContextChanged(EventArgs)RadControl.OnLocationChanged(EventArgs)RadControl.OnPaddingChanged(EventArgs)RadControl.OnRightToLeftChanged(EventArgs)RadControl.OnAutoSizeChanged(EventArgs)RadControl.OnInvalidated(RadElement)RadControl.OnCaptureLosing()RadControl.OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)RadControl.OnScreenTipNeeded(object, ScreenTipNeededEventArgs)RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)RadControl.ProcessMnemonic(char)RadControl.ProcessFocusRequested(RadElement)RadControl.ProcessCaptureChangeRequested(RadElement, bool)RadControl.ProcessAutoSizeChanged(bool)RadControl.IsInputKey(Keys)RadControl.GetInputElement()RadControl.OnNotifyPropertyChanged(string)RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadControl.GetPreferredSize(Size)RadControl.SetBoundsCore(int, int, int, int, BoundsSpecified)RadControl.GetRootElementDesiredSize(int, int, int, int)RadControl.OnZoomGesture(ZoomGestureEventArgs)RadControl.OnRotateGesture(RotateGestureEventArgs)RadControl.OnPanGesture(PanGestureEventArgs)RadControl.OnTwoFingerTapGesture(GestureEventArgs)RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadControl.OnGesture(GestureEventArgs)RadControl.ProcessGesture(Message)RadControl.EnableGesture(GestureType)RadControl.DisableGesture(GestureType)RadControl.Refresh()RadControl.SuspendUpdate()RadControl.ResumeUpdate()RadControl.ResumeUpdate(bool)RadControl.InvokeLayoutCallback(LayoutCallback)RadControl.RegisterHostedControl(RadHostItem)RadControl.UnregisterHostedControl(RadHostItem, bool)RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)RadControl.GetPlainText()RadControl.ShouldSerializeProperty(RadProperty)RadControl.ShouldSerializeProperty(RadProperty, RadObject)RadControl.ResetProperty(RadProperty, RadObject)RadControl.CanEditElementAtDesignTime(RadElement)RadControl.ProcessCodedUIMessage(ref IPCMessage)RadControl.FindPropertyInChildren(RadControl, IPCMessage)RadControl.ScaleControl(SizeF, BoundsSpecified)RadControl.PerformRadAutoScale(BoundsSpecified?)RadControl.GetMonitorDpiScaleFactor(Control)RadControl.SetRadAutoScale(bool)RadControl.EnableDpiScalingRadControl.EnableRadAutoScaleRadControl.EnableRadFormInitialDpiScalingRadControl.EnableImageDpiScalingRadControl.EnableSvgImagesRadControl.IsLoadedRadControl.ElementTreeRadControl.UseCompatibleTextRenderingDefaultValueRadControl.BehaviorRadControl.RootElementRadControl.PaddingRadControl.ThemeNameRadControl.TextRadControl.EnableThemingRadControl.ThemeClassNameRadControl.ImageListRadControl.ImageScalingSizeRadControl.UseCompatibleTextRenderingRadControl.AutoSizeRadControl.MaximumSizeRadControl.MinimumSizeRadControl.FocusableRadControl.SiteRadControl.CausesValidationRadControl.IsInitializingRadControl.SmallImageListRadControl.SmallImageScalingSizeRadControl.IsDesignModeRadControl.IsDisplayedRadControl.FocusedElementRadControl.AllowShowFocusCuesRadControl.ShowItemToolTipsRadControl.CommandBindingsRadControl.EnableKeyMapRadControl.BackColorRadControl.ForeColorRadControl.FontRadControl.ValidationCancelRadControl.EnableAnalyticsRadControl.AnalyticsNameRadControl.EnableRadAccessibilityObjectsRadControl.EnableCodedUITestsRadControl.EnableCodedUITestsDefaultValueRadControl.EnableUIAutomationRadControl.EnableUIAutomationDefaultValueRadControl.ElementInvalidatedRadControl.ToolTipTextNeededRadControl.ScreenTipNeededRadControl.ThemeNameChangedRadControl.InitializedRadControl.PropertyChangedRadControl.ZoomGestureRadControl.RotateGestureRadControl.PanGestureRadControl.TwoFingerTapGestureRadControl.PressAndTapGestureScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.AdjustFormScrollbars(bool)ScrollableControl.GetScrollState(int)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateAccessibilityInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.Focus()Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.OnEnter(EventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.OnLeave(EventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMove(EventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnResize(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessDialogChar(char)Control.ProcessDialogKey(Keys)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.Select(bool, bool)Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackgroundImageControl.BackgroundImageLayoutControl.BindingContextControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontHeightControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.CanEnableImeControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.KeyDownControl.KeyPressControl.KeyUpControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadLayoutControl()

Declaration

cs-api-definition
public RadLayoutControl()

Properties

AllowCustomize

Gets or sets a value indicating whether the end-user is allowed show the Customize Dialog and modify the existing layout.

Declaration

cs-api-definition
[Browsable(true)]
public bool AllowCustomize { get; set; }

Property Value

bool

AllowHiddenItems

Gets or sets a value indicating whether the end-user is allowed to hide and show existing items.

Declaration

cs-api-definition
[Browsable(true)]
public bool AllowHiddenItems { get; set; }

Property Value

bool

AllowResize

Gets or sets a value indicating whether resizing is enabled when the Customize Dialog is not shown.

Declaration

cs-api-definition
[Browsable(true)]
public bool AllowResize { get; set; }

Property Value

bool

ClientMargin

Gets the margin around the client area of the control. In the default case, this should be the border thickness.

Declaration

cs-api-definition
public Padding ClientMargin { get; }

Property Value

Padding

ContainerElement

Gets the main LayoutControlContainerElement which hosts the items on the root level.

Declaration

cs-api-definition
[Browsable(false)]
public LayoutControlContainerElement ContainerElement { get; }

Property Value

LayoutControlContainerElement

CreateParams

Declaration

cs-api-definition
protected override CreateParams CreateParams { get; }

Property Value

CreateParams

Overrides ScrollableControl.CreateParams

CurrentResizingBehavior

If the user is currently resizing, returns the active LayoutControlResizingBehavior, otherwise returns null.

Declaration

cs-api-definition
public LayoutControlResizingBehavior CurrentResizingBehavior { get; }

Property Value

LayoutControlResizingBehavior

Cursor

Declaration

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

Property Value

Cursor

Overrides Control.Cursor

CustomizeDialog

Gets or sets the Customize Dialog form which is shown via the context menu.

Declaration

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

Property Value

RadLayoutControlCustomizeDialog

DefaultSize

Declaration

cs-api-definition
protected override Size DefaultSize { get; }

Property Value

Size

Overrides Control.DefaultSize

DragOverlay

Gets the LayoutControlDraggableOverlay control which appears when the Customize Dialog is shown.

Declaration

cs-api-definition
[Browsable(false)]
public LayoutControlDraggableOverlay DragOverlay { get; }

Property Value

LayoutControlDraggableOverlay

DragOverlayVisible

Indicates whether the DragOverlay control is visible.

Declaration

cs-api-definition
[Browsable(false)]
public bool DragOverlayVisible { get; }

Property Value

bool

DrawBorder

Gets or sets a value indicating whether the layout control displays its border.

Declaration

cs-api-definition
[Browsable(true)]
public bool DrawBorder { get; set; }

Property Value

bool

true to draw the border; otherwise, false. The default value is true.

DropDownMenu

Gets or sets the context menu.

Declaration

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

Property Value

RadDropDownMenu

EnableNCModification

Declaration

cs-api-definition
protected override bool EnableNCModification { get; }

Property Value

bool

Overrides RadNCEnabledControl.EnableNCModification

EnableNCPainting

Declaration

cs-api-definition
protected override bool EnableNCPainting { get; }

Property Value

bool

Overrides RadNCEnabledControl.EnableNCPainting

HiddenItems

Gets a collection containing the hidden items.

Declaration

cs-api-definition
[Browsable(false)]
public RadItemCollection HiddenItems { get; }

Property Value

RadItemCollection

HorizontalScrollbar

Gets the horizontal RadHScrollBar.

Declaration

cs-api-definition
[Browsable(false)]
public RadHScrollBar HorizontalScrollbar { get; }

Property Value

RadHScrollBar

IsResizing

Indicates whether the user is currently resizing the items.

Declaration

cs-api-definition
public bool IsResizing { get; }

Property Value

bool

Items

Gets a collection containing the items on the root level.

Declaration

cs-api-definition
[Browsable(false)]
public RadItemOwnerCollection Items { get; }

Property Value

RadItemOwnerCollection

VerticalScrollbar

Gets the vertical RadVScrollBar.

Declaration

cs-api-definition
[Browsable(false)]
public RadVScrollBar VerticalScrollbar { get; }

Property Value

RadVScrollBar

XmlSerializationInfo

Gets the serialization info for RadLayoutControl used by Save/Load layout methods to persist the layout to/from XML. By default or when set to null the ComponentXmlSerializationInfo provided by GetDefaultXmlSerializationInfo() will be used.

Declaration

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

Property Value

ComponentXmlSerializationInfo

Methods

AddItem(Control, Control, LayoutControlDropPosition)

Adds a control at a specified position next to a specified control.

Declaration

cs-api-definition
public void AddItem(Control control, Control anchor, LayoutControlDropPosition position)

Parameters

control

Control

The control to add.

anchor

Control

An existing control next to which the new control will be added.

position

LayoutControlDropPosition

The position at which the new control will be added.

AddItem(Control, LayoutControlContainerElement)

Adds a control to the specified container.

Declaration

cs-api-definition
public void AddItem(Control control, LayoutControlContainerElement container)

Parameters

control

Control

The control to add.

container

LayoutControlContainerElement

The container.

AddItem(Control, LayoutControlItemBase, LayoutControlDropPosition)

Adds a control at a specified position next to a specified item.

Declaration

cs-api-definition
public void AddItem(Control control, LayoutControlItemBase anchor, LayoutControlDropPosition position)

Parameters

control

Control

The control to add.

anchor

LayoutControlItemBase

An existing item next to which the new control will be added.

position

LayoutControlDropPosition

The position at which the new control will be added.

AddItem(LayoutControlItemBase)

Adds an item at the root level of the control and rebuilds the layout.

Declaration

cs-api-definition
public void AddItem(LayoutControlItemBase item)

Parameters

item

LayoutControlItemBase

The item to add.

AddItem(LayoutControlItemBase, Control, LayoutControlDropPosition)

Adds an item at a specified position next to a specified existing control.

Declaration

cs-api-definition
public void AddItem(LayoutControlItemBase item, Control anchor, LayoutControlDropPosition position)

Parameters

item

LayoutControlItemBase

The item to add.

anchor

Control

An existing control next to which the new control will be added.

position

LayoutControlDropPosition

The position at which the new control will be added.

AddItem(LayoutControlItemBase, LayoutControlContainerElement)

Adds an item to the specified container and rebuilds its layout.

Declaration

cs-api-definition
public void AddItem(LayoutControlItemBase item, LayoutControlContainerElement container)

Parameters

item

LayoutControlItemBase

The item to add.

container

LayoutControlContainerElement

The container to add the item to.

AddItem(LayoutControlItemBase, LayoutControlItemBase, LayoutControlDropPosition)

Adds an item at a specified position next to a specified existing item.

Declaration

cs-api-definition
public void AddItem(LayoutControlItemBase item, LayoutControlItemBase anchor, LayoutControlDropPosition position)

Parameters

item

LayoutControlItemBase

The item to add.

anchor

LayoutControlItemBase

An existing item next to which the new control will be added.

position

LayoutControlDropPosition

The position at which the new control will be added.

BeginInit()

Suspends layout during initialization.

Declaration

cs-api-definition
public override void BeginInit()

Overrides RadControl.BeginInit()

BeginUpdate()

Puts the control in an initialization state where it will not update until EndUpdate is called.

Declaration

cs-api-definition
public void BeginUpdate()

CloseCustomizeDialog()

Closes the RadLayoutControlCustomizeDialog and puts the control out of customize mode.

Declaration

cs-api-definition
public void CloseCustomizeDialog()

CreateChildItems(RadElement)

Creates the child elements for the layout control including the container element and scrollbars.

Declaration

cs-api-definition
protected override void CreateChildItems(RadElement parent)

Parameters

parent

RadElement

The parent element that will contain the child elements.

Overrides RadControl.CreateChildItems(RadElement)

CreateControlsInstance()

Declaration

cs-api-definition
protected override Control.ControlCollection CreateControlsInstance()

Returns

Control.ControlCollection

Overrides Control.CreateControlsInstance()

Dispose(bool)

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

Overrides RadControl.Dispose(bool)

EndInit()

Resumes layout.

Declaration

cs-api-definition
public override void EndInit()

Overrides RadControl.EndInit()

EndUpdate()

Puts the control out of the initialization state caused by calling BeginUpdate and updates it.

Declaration

cs-api-definition
public void EndUpdate()

EnsureItemsControlsVisibility()

Called after load layout to ensure the visibility of the controls is the same as the visibility of the items.

Declaration

cs-api-definition
protected void EnsureItemsControlsVisibility()

FindItemByControl(Control)

Finds the item associated with a given control.

Declaration

cs-api-definition
public LayoutControlItem FindItemByControl(Control control)

Parameters

control

Control

The control.

Returns

LayoutControlItem

The control's associated item.

FindItemByControl(Control, bool)

Finds the item associated with a given control.

Declaration

cs-api-definition
public LayoutControlItem FindItemByControl(Control control, bool includeHidden)

Parameters

control

Control

The control.

includeHidden

bool

[true] if the HiddenItems collection should be searched, [false] otherwise.

Returns

LayoutControlItem

The control's associated item.

GetAllItems()

Gets the items from all levels which are nested in the control.

Declaration

cs-api-definition
public IEnumerable<LayoutControlItemBase> GetAllItems()

Returns

IEnumerable<LayoutControlItemBase>

An enumeration of the items.

GetAllItems(bool)

Gets the items from all levels which are nested in the control.

Declaration

cs-api-definition
public IEnumerable<LayoutControlItemBase> GetAllItems(bool includeHidden)

Parameters

includeHidden

bool

Returns

IEnumerable<LayoutControlItemBase>

GetBehaviorAtPoint(Point)

Gets the LayoutControlResizingBehavior that should be activated at a given point.

Declaration

cs-api-definition
public LayoutControlResizingBehavior GetBehaviorAtPoint(Point point)

Parameters

point

Point

The point.

Returns

LayoutControlResizingBehavior

The resizing behavior at that point.

GetCursorAtPoint(Point)

Gets the mouse cursor which should be shown at a given point.

Declaration

cs-api-definition
public Cursor GetCursorAtPoint(Point point)

Parameters

point

Point

The point.

Returns

Cursor

The cursor to be shown at that point.

GetDefaultXmlSerializationInfo()

Gets the default serialization info for RadLayoutControl used by Save/Load layout methods to persist the layout to/from XML.

Declaration

cs-api-definition
protected virtual ComponentXmlSerializationInfo GetDefaultXmlSerializationInfo()

Returns

ComponentXmlSerializationInfo

The default serialization info.

GetInitialCustomizeDialogLocation()

Gets the initial location of the RadLayoutControlCustomizeDialog.

Declaration

cs-api-definition
protected virtual Point GetInitialCustomizeDialogLocation()

Returns

Point

The location.

GetNCMetrics()

Declaration

cs-api-definition
protected override Padding GetNCMetrics()

Returns

Padding

Overrides RadNCEnabledControl.GetNCMetrics()

HideDragOverlay()

Declaration

cs-api-definition
public void HideDragOverlay()

HideItem(Control)

Hides a control from the RadLayoutPanel and places it in the HiddenItems collection.

Declaration

cs-api-definition
public void HideItem(Control control)

Parameters

control

Control

The control to hide.

HideItem(LayoutControlItemBase)

Hides an item from the RadLayoutPanel and places it in the HiddenItems collection.

Declaration

cs-api-definition
public void HideItem(LayoutControlItemBase item)

Parameters

item

LayoutControlItemBase

The item to hide.

InitializeDropDownMenu()

Initializes the default context menu items for the layout control.

Declaration

cs-api-definition
protected virtual void InitializeDropDownMenu()

LoadLayout(Stream)

Loads RadLayoutControl's layout state from XML file, using the serialization information provided by the XmlSerializationInfo property.

Declaration

cs-api-definition
public virtual void LoadLayout(Stream stream)

Parameters

stream

Stream

The stream to read from.

LoadLayout(XmlReader)

Loads RadLayoutControl's layout state from XML file, using the serialization information provided by the XmlSerializationInfo property.

Declaration

cs-api-definition
public virtual void LoadLayout(XmlReader xmlReader)

Parameters

xmlReader

XmlReader

The XmlReader to read the XML from.

LoadLayout(string)

Loads RadLayoutControl's layout state from XML file, using the serialization information provided by the XmlSerializationInfo property.

Declaration

cs-api-definition
public virtual void LoadLayout(string fileName)

Parameters

fileName

string

The file to read from.

OnHandleCreated(EventArgs)

Declaration

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

Parameters

e

EventArgs

Overrides Control.OnHandleCreated(EventArgs)

OnHandleDestroyed(EventArgs)

Declaration

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

Parameters

e

EventArgs

Overrides RadControl.OnHandleDestroyed(EventArgs)

OnHandleDropCompleted(object)

Declaration

cs-api-definition
protected virtual void OnHandleDropCompleted(object sender)

Parameters

sender

object

OnItemHiding(LayoutControlItemHidingEventArgs)

Raises the ItemHiding event when an item is about to be hidden.

Declaration

cs-api-definition
protected virtual void OnItemHiding(LayoutControlItemHidingEventArgs args)

Parameters

args

LayoutControlItemHidingEventArgs

The event arguments containing information about the item being hidden.

OnLayout(LayoutEventArgs)

Declaration

cs-api-definition
protected override void OnLayout(LayoutEventArgs e)

Parameters

e

LayoutEventArgs

Overrides RadControl.OnLayout(LayoutEventArgs)

OnLoad(Size)

Notifies that the control is about to be visualized.

Declaration

cs-api-definition
protected override void OnLoad(Size desiredSize)

Parameters

desiredSize

Size

Overrides RadControl.OnLoad(Size)

OnMouseDown(MouseEventArgs)

Declaration

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

Parameters

e

MouseEventArgs

Overrides RadControl.OnMouseDown(MouseEventArgs)

OnMouseMove(MouseEventArgs)

Declaration

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

Parameters

e

MouseEventArgs

Overrides RadControl.OnMouseMove(MouseEventArgs)

OnMouseUp(MouseEventArgs)

Declaration

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

Parameters

e

MouseEventArgs

Overrides RadControl.OnMouseUp(MouseEventArgs)

OnMouseWheel(MouseEventArgs)

Declaration

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

Parameters

e

MouseEventArgs

Overrides RadControl.OnMouseWheel(MouseEventArgs)

OnNCPaint(Graphics)

Declaration

cs-api-definition
protected override void OnNCPaint(Graphics g)

Parameters

g

Graphics

Overrides RadNCEnabledControl.OnNCPaint(Graphics)

OnPaint(PaintEventArgs)

Declaration

cs-api-definition
protected override void OnPaint(PaintEventArgs e)

Parameters

e

PaintEventArgs

Overrides RadControl.OnPaint(PaintEventArgs)

OnSizeChanged(EventArgs)

Declaration

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

Parameters

e

EventArgs

Overrides Control.OnSizeChanged(EventArgs)

OnStructureChanged(object)

Raises the StructureChanged event when the layout structure is modified.

Declaration

cs-api-definition
protected virtual void OnStructureChanged(object sender)

Parameters

sender

object

The source of the structure change.

OnThemeChanged()

Declaration

cs-api-definition
protected override void OnThemeChanged()

Overrides RadControl.OnThemeChanged()

PreFilterMessage(ref Message)

Declaration

cs-api-definition
public bool PreFilterMessage(ref Message m)

Parameters

m

Message

Returns

bool

Implements IMessageFilter.PreFilterMessage(ref Message)

ProcessCmdKey(ref Message, Keys)

Declaration

cs-api-definition
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)

Parameters

msg

Message

keyData

Keys

Returns

bool

Overrides Control.ProcessCmdKey(ref Message, Keys)

RemoveItem(Control)

Removes the specified control from the RadLayoutControl.

Declaration

cs-api-definition
public void RemoveItem(Control control)

Parameters

control

Control

The control to remove.

RemoveItem(LayoutControlItemBase)

Removes the specified item from the RadLayoutControl.

Declaration

cs-api-definition
public void RemoveItem(LayoutControlItemBase item)

Parameters

item

LayoutControlItemBase

The item to remove.

ResetBackColorThemeOverrides()

Declaration

cs-api-definition
protected override void ResetBackColorThemeOverrides()

Overrides RadControl.ResetBackColorThemeOverrides()

ResetForeColorThemeOverrides()

Declaration

cs-api-definition
protected override void ResetForeColorThemeOverrides()

Overrides RadControl.ResetForeColorThemeOverrides()

ResizeItem(Control, int)

Resizes the specified control with a specified amount. Resize direction depends on the position of item.

Declaration

cs-api-definition
public void ResizeItem(Control control, int diff)

Parameters

control

Control

The control to resize.

diff

int

The amount to resize with.

ResizeItem(LayoutControlItemBase, int)

Resizes the specified item with a specified amount. Resize direction depends on the position of item.

Declaration

cs-api-definition
public void ResizeItem(LayoutControlItemBase item, int diff)

Parameters

item

LayoutControlItemBase

The item to resize.

diff

int

The amount to resize with.

SaveLayout(Stream)

Stores RadLayoutControl's layout state in XML format, using the serialization information provided by the XmlSerializationInfo property.

Declaration

cs-api-definition
public virtual void SaveLayout(Stream stream)

Parameters

stream

Stream

The stream to write to.

SaveLayout(XmlWriter)

Stores RadLayoutControl's layout state in XML format, using the serialization information provided by the XmlSerializationInfo property.

Declaration

cs-api-definition
public virtual void SaveLayout(XmlWriter xmlWriter)

Parameters

xmlWriter

XmlWriter

XmlWriter to use by the built-in serializer

SaveLayout(string)

Stores RadLayoutControl's layout state in XML format, using the serialization information provided by the XmlSerializationInfo property.

Declaration

cs-api-definition
public virtual void SaveLayout(string fileName)

Parameters

fileName

string

The file to write to.

SetBackColorThemeOverrides()

Declaration

cs-api-definition
protected override void SetBackColorThemeOverrides()

Overrides RadControl.SetBackColorThemeOverrides()

SetForeColorThemeOverrides()

Declaration

cs-api-definition
protected override void SetForeColorThemeOverrides()

Overrides RadControl.SetForeColorThemeOverrides()

ShowCustomizeDialog()

Shows the RadLayoutControlCustomizeDialog and puts the control in customize mode.

Declaration

cs-api-definition
public void ShowCustomizeDialog()

ShowDragOverlay()

Shows the LayoutControlDraggableOverlay control which allows reordering and resizing the items.

Declaration

cs-api-definition
public void ShowDragOverlay()

UpdateControlsLayout()

Updates the bounds of nested controls.

Declaration

cs-api-definition
public void UpdateControlsLayout()

UpdateScrollbars()

Updates the scrollbar metrics.

Declaration

cs-api-definition
public virtual void UpdateScrollbars()

Events

ItemHiding

Occurs when a layout control item is about to be hidden, allowing cancellation of the hiding operation.

Declaration

cs-api-definition
public event EventHandler<LayoutControlItemHidingEventArgs> ItemHiding

Event Value

EventHandler<LayoutControlItemHidingEventArgs>

StructureChanged

Occurs when the structure of the layout control changes, including modifications to items in the control or its inner containers such as groups and tabbed groups.

Declaration

cs-api-definition
public event EventHandler StructureChanged

Event Value

EventHandler

In this article
DefinitionConstructorsRadLayoutControl()PropertiesAllowCustomizeAllowHiddenItemsAllowResizeClientMarginContainerElementCreateParamsCurrentResizingBehaviorCursorCustomizeDialogDefaultSizeDragOverlayDragOverlayVisibleDrawBorderDropDownMenuEnableNCModificationEnableNCPaintingHiddenItemsHorizontalScrollbarIsResizingItemsVerticalScrollbarXmlSerializationInfoMethodsAddItem(Control, Control, LayoutControlDropPosition)AddItem(Control, LayoutControlContainerElement)AddItem(Control, LayoutControlItemBase, LayoutControlDropPosition)AddItem(LayoutControlItemBase)AddItem(LayoutControlItemBase, Control, LayoutControlDropPosition)AddItem(LayoutControlItemBase, LayoutControlContainerElement)AddItem(LayoutControlItemBase, LayoutControlItemBase, LayoutControlDropPosition)BeginInit()BeginUpdate()CloseCustomizeDialog()CreateChildItems(RadElement)CreateControlsInstance()Dispose(bool)EndInit()EndUpdate()EnsureItemsControlsVisibility()FindItemByControl(Control)FindItemByControl(Control, bool)GetAllItems()GetAllItems(bool)GetBehaviorAtPoint(Point)GetCursorAtPoint(Point)GetDefaultXmlSerializationInfo()GetInitialCustomizeDialogLocation()GetNCMetrics()HideDragOverlay()HideItem(Control)HideItem(LayoutControlItemBase)InitializeDropDownMenu()LoadLayout(Stream)LoadLayout(XmlReader)LoadLayout(string)OnHandleCreated(EventArgs)OnHandleDestroyed(EventArgs)OnHandleDropCompleted(object)OnItemHiding(LayoutControlItemHidingEventArgs)OnLayout(LayoutEventArgs)OnLoad(Size)OnMouseDown(MouseEventArgs)OnMouseMove(MouseEventArgs)OnMouseUp(MouseEventArgs)OnMouseWheel(MouseEventArgs)OnNCPaint(Graphics)OnPaint(PaintEventArgs)OnSizeChanged(EventArgs)OnStructureChanged(object)OnThemeChanged()PreFilterMessage(ref Message)ProcessCmdKey(ref Message, Keys)RemoveItem(Control)RemoveItem(LayoutControlItemBase)ResetBackColorThemeOverrides()ResetForeColorThemeOverrides()ResizeItem(Control, int)ResizeItem(LayoutControlItemBase, int)SaveLayout(Stream)SaveLayout(XmlWriter)SaveLayout(string)SetBackColorThemeOverrides()SetForeColorThemeOverrides()ShowCustomizeDialog()ShowDragOverlay()UpdateControlsLayout()UpdateScrollbars()EventsItemHidingStructureChanged
Not finding the help you need?
Contact Support