New to Telerik UI for WinFormsStart a free 30-day trial

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:

C#
[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

C#
public RadLayoutControl()

Properties

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

C#
[Browsable(true)]
public bool AllowCustomize { get; set; }

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

C#
[Browsable(true)]
public bool AllowHiddenItems { get; set; }

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

C#
[Browsable(true)]
public bool AllowResize { get; set; }

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

C#
public Padding ClientMargin { get; }

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

C#
[Browsable(false)]
public LayoutControlContainerElement ContainerElement { get; }
C#
protected override CreateParams CreateParams { get; }

Overrides: ScrollableControl.CreateParams

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

C#
public LayoutControlResizingBehavior CurrentResizingBehavior { get; }
C#
[Browsable(false)]
public override Cursor Cursor { get; set; }

Overrides: Control.Cursor

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

C#
[Browsable(false)]
public RadLayoutControlCustomizeDialog CustomizeDialog { get; set; }
C#
protected override Size DefaultSize { get; }

Overrides: Control.DefaultSize

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

C#
[Browsable(false)]
public LayoutControlDraggableOverlay DragOverlay { get; }

Indicates whether the DragOverlay control is visible.

C#
[Browsable(false)]
public bool DragOverlayVisible { get; }

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

C#
[Browsable(true)]
public bool DrawBorder { get; set; }
Property Value:

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

Gets or sets the context menu.

C#
[Browsable(false)]
public RadDropDownMenu DropDownMenu { get; set; }
C#
protected override bool EnableNCModification { get; }

Overrides: RadNCEnabledControl.EnableNCModification

C#
protected override bool EnableNCPainting { get; }

Overrides: RadNCEnabledControl.EnableNCPainting

Gets a collection containing the hidden items.

C#
[Browsable(false)]
public RadItemCollection HiddenItems { get; }

Gets the horizontal RadHScrollBar.

C#
[Browsable(false)]
public RadHScrollBar HorizontalScrollbar { get; }

Indicates whether the user is currently resizing the items.

C#
public bool IsResizing { get; }

Gets a collection containing the items on the root level.

C#
[Browsable(false)]
public RadItemOwnerCollection Items { get; }

Gets the vertical RadVScrollBar.

C#
[Browsable(false)]
public RadVScrollBar VerticalScrollbar { get; }

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.

C#
[Browsable(false)]
public ComponentXmlSerializationInfo XmlSerializationInfo { get; set; }

Methods

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

C#
public void AddItem(Control control, Control anchor, LayoutControlDropPosition position)
Parameters:controlControl

The control to add.

anchorControl

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

positionLayoutControlDropPosition

The position at which the new control will be added.

Adds a control to the specified container.

C#
public void AddItem(Control control, LayoutControlContainerElement container)
Parameters:controlControl

The control to add.

containerLayoutControlContainerElement

The container.

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

C#
public void AddItem(Control control, LayoutControlItemBase anchor, LayoutControlDropPosition position)
Parameters:controlControl

The control to add.

anchorLayoutControlItemBase

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

positionLayoutControlDropPosition

The position at which the new control will be added.

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

C#
public void AddItem(LayoutControlItemBase item, Control anchor, LayoutControlDropPosition position)
Parameters:itemLayoutControlItemBase

The item to add.

anchorControl

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

positionLayoutControlDropPosition

The position at which the new control will be added.

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

C#
public void AddItem(LayoutControlItemBase item, LayoutControlContainerElement container)
Parameters:itemLayoutControlItemBase

The item to add.

containerLayoutControlContainerElement

The container to add the item to.

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

C#
public void AddItem(LayoutControlItemBase item, LayoutControlItemBase anchor, LayoutControlDropPosition position)
Parameters:itemLayoutControlItemBase

The item to add.

anchorLayoutControlItemBase

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

positionLayoutControlDropPosition

The position at which the new control will be added.

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

C#
public void AddItem(LayoutControlItemBase item)
Parameters:itemLayoutControlItemBase

The item to add.

Suspends layout during initialization.

C#
public override void BeginInit()

Overrides: RadControl.BeginInit()

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

C#
public void BeginUpdate()

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

C#
public void CloseCustomizeDialog()

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

C#
protected override void CreateChildItems(RadElement parent)
Parameters:parentRadElement

The parent element that will contain the child elements.

Overrides: RadControl.CreateChildItems(RadElement)

C#
protected override Control.ControlCollection CreateControlsInstance()
Returns:

Control.ControlCollection

Overrides: Control.CreateControlsInstance()

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

Overrides: RadControl.Dispose(bool)

Resumes layout.

C#
public override void EndInit()

Overrides: RadControl.EndInit()

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

C#
public void EndUpdate()

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

C#
protected void EnsureItemsControlsVisibility()

Finds the item associated with a given control.

C#
public LayoutControlItem FindItemByControl(Control control, bool includeHidden)
Parameters:controlControl

The control.

includeHiddenbool

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

Returns:

LayoutControlItem

The control's associated item.

Finds the item associated with a given control.

C#
public LayoutControlItem FindItemByControl(Control control)
Parameters:controlControl

The control.

Returns:

LayoutControlItem

The control's associated item.

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

C#
public IEnumerable<LayoutControlItemBase> GetAllItems()
Returns:

IEnumerable<LayoutControlItemBase>

An enumeration of the items.

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

C#
public IEnumerable<LayoutControlItemBase> GetAllItems(bool includeHidden)
Parameters:includeHiddenboolReturns:

IEnumerable<LayoutControlItemBase>

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

C#
public LayoutControlResizingBehavior GetBehaviorAtPoint(Point point)
Parameters:pointPoint

The point.

Returns:

LayoutControlResizingBehavior

The resizing behavior at that point.

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

C#
public Cursor GetCursorAtPoint(Point point)
Parameters:pointPoint

The point.

Returns:

Cursor

The cursor to be shown at that point.

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

C#
protected virtual ComponentXmlSerializationInfo GetDefaultXmlSerializationInfo()
Returns:

ComponentXmlSerializationInfo

The default serialization info.

Gets the initial location of the RadLayoutControlCustomizeDialog.

C#
protected virtual Point GetInitialCustomizeDialogLocation()
Returns:

Point

The location.

C#
protected override Padding GetNCMetrics()
Returns:

Padding

Overrides: RadNCEnabledControl.GetNCMetrics()

C#
public void HideDragOverlay()

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

C#
public void HideItem(Control control)
Parameters:controlControl

The control to hide.

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

C#
public void HideItem(LayoutControlItemBase item)
Parameters:itemLayoutControlItemBase

The item to hide.

Initializes the default context menu items for the layout control.

C#
protected virtual void InitializeDropDownMenu()

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

C#
public virtual void LoadLayout(Stream stream)
Parameters:streamStream

The stream to read from.

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

C#
public virtual void LoadLayout(string fileName)
Parameters:fileNamestring

The file to read from.

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

C#
public virtual void LoadLayout(XmlReader xmlReader)
Parameters:xmlReaderXmlReader

The XmlReader to read the XML from.

C#
protected override void OnHandleCreated(EventArgs e)
Parameters:eEventArgs

Overrides: Control.OnHandleCreated(EventArgs)

C#
protected override void OnHandleDestroyed(EventArgs e)
Parameters:eEventArgs

Overrides: RadControl.OnHandleDestroyed(EventArgs)

C#
protected virtual void OnHandleDropCompleted(object sender)
Parameters:senderobject

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

C#
protected virtual void OnItemHiding(LayoutControlItemHidingEventArgs args)
Parameters:argsLayoutControlItemHidingEventArgs

The event arguments containing information about the item being hidden.

C#
protected override void OnLayout(LayoutEventArgs e)
Parameters:eLayoutEventArgs

Overrides: RadControl.OnLayout(LayoutEventArgs)

Notifies that the control is about to be visualized.

C#
protected override void OnLoad(Size desiredSize)
Parameters:desiredSizeSize

Overrides: RadControl.OnLoad(Size)

C#
protected override void OnMouseDown(MouseEventArgs e)
Parameters:eMouseEventArgs

Overrides: RadControl.OnMouseDown(MouseEventArgs)

C#
protected override void OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

Overrides: RadControl.OnMouseMove(MouseEventArgs)

C#
protected override void OnMouseUp(MouseEventArgs e)
Parameters:eMouseEventArgs

Overrides: RadControl.OnMouseUp(MouseEventArgs)

C#
protected override void OnMouseWheel(MouseEventArgs e)
Parameters:eMouseEventArgs

Overrides: RadControl.OnMouseWheel(MouseEventArgs)

C#
protected override void OnNCPaint(Graphics g)
Parameters:gGraphics

Overrides: RadNCEnabledControl.OnNCPaint(Graphics)

C#
protected override void OnPaint(PaintEventArgs e)
Parameters:ePaintEventArgs

Overrides: RadControl.OnPaint(PaintEventArgs)

C#
protected override void OnSizeChanged(EventArgs e)
Parameters:eEventArgs

Overrides: Control.OnSizeChanged(EventArgs)

Raises the StructureChanged event when the layout structure is modified.

C#
protected virtual void OnStructureChanged(object sender)
Parameters:senderobject

The source of the structure change.

C#
protected override void OnThemeChanged()

Overrides: RadControl.OnThemeChanged()

C#
public bool PreFilterMessage(ref Message m)
Parameters:mMessageReturns:

bool

Implements: IMessageFilter.PreFilterMessage(ref Message)

C#
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
Parameters:msgMessagekeyDataKeysReturns:

bool

Overrides: Control.ProcessCmdKey(ref Message, Keys)

Removes the specified control from the RadLayoutControl.

C#
public void RemoveItem(Control control)
Parameters:controlControl

The control to remove.

Removes the specified item from the RadLayoutControl.

C#
public void RemoveItem(LayoutControlItemBase item)
Parameters:itemLayoutControlItemBase

The item to remove.

C#
protected override void ResetBackColorThemeOverrides()

Overrides: RadControl.ResetBackColorThemeOverrides()

C#
protected override void ResetForeColorThemeOverrides()

Overrides: RadControl.ResetForeColorThemeOverrides()

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

C#
public void ResizeItem(Control control, int diff)
Parameters:controlControl

The control to resize.

diffint

The amount to resize with.

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

C#
public void ResizeItem(LayoutControlItemBase item, int diff)
Parameters:itemLayoutControlItemBase

The item to resize.

diffint

The amount to resize with.

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

C#
public virtual void SaveLayout(Stream stream)
Parameters:streamStream

The stream to write to.

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

C#
public virtual void SaveLayout(string fileName)
Parameters:fileNamestring

The file to write to.

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

C#
public virtual void SaveLayout(XmlWriter xmlWriter)
Parameters:xmlWriterXmlWriter

XmlWriter to use by the built-in serializer

C#
protected override void SetBackColorThemeOverrides()

Overrides: RadControl.SetBackColorThemeOverrides()

C#
protected override void SetForeColorThemeOverrides()

Overrides: RadControl.SetForeColorThemeOverrides()

Shows the RadLayoutControlCustomizeDialog and puts the control in customize mode.

C#
public void ShowCustomizeDialog()

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

C#
public void ShowDragOverlay()

Updates the bounds of nested controls.

C#
public void UpdateControlsLayout()

Updates the scrollbar metrics.

C#
public virtual void UpdateScrollbars()

Events

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

C#
public event EventHandler<LayoutControlItemHidingEventArgs> ItemHiding

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.

C#
public event EventHandler StructureChanged
In this article
DefinitionConstructorsRadLayoutControl()PropertiesAllowCustomizeAllowHiddenItemsAllowResizeClientMarginContainerElementCreateParamsCurrentResizingBehaviorCursorCustomizeDialogDefaultSizeDragOverlayDragOverlayVisibleDrawBorderDropDownMenuEnableNCModificationEnableNCPaintingHiddenItemsHorizontalScrollbarIsResizingItemsVerticalScrollbarXmlSerializationInfoMethodsAddItem(Control, Control, LayoutControlDropPosition)AddItem(Control, LayoutControlContainerElement)AddItem(Control, LayoutControlItemBase, LayoutControlDropPosition)AddItem(LayoutControlItemBase, Control, LayoutControlDropPosition)AddItem(LayoutControlItemBase, LayoutControlContainerElement)AddItem(LayoutControlItemBase, LayoutControlItemBase, LayoutControlDropPosition)AddItem(LayoutControlItemBase)BeginInit()BeginUpdate()CloseCustomizeDialog()CreateChildItems(RadElement)CreateControlsInstance()Dispose(bool)EndInit()EndUpdate()EnsureItemsControlsVisibility()FindItemByControl(Control, bool)FindItemByControl(Control)GetAllItems()GetAllItems(bool)GetBehaviorAtPoint(Point)GetCursorAtPoint(Point)GetDefaultXmlSerializationInfo()GetInitialCustomizeDialogLocation()GetNCMetrics()HideDragOverlay()HideItem(Control)HideItem(LayoutControlItemBase)InitializeDropDownMenu()LoadLayout(Stream)LoadLayout(string)LoadLayout(XmlReader)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(string)SaveLayout(XmlWriter)SetBackColorThemeOverrides()SetForeColorThemeOverrides()ShowCustomizeDialog()ShowDragOverlay()UpdateControlsLayout()UpdateScrollbars()EventsItemHidingStructureChanged
Not finding the help you need?
Contact Support