Table of Contents

Interface ILayoutItem

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Defines the contract for layout items, providing properties and methods to manage layout characteristics such as size, position, and alignment within a container.

public interface ILayoutItem

Remarks

Implementations of this interface are expected to handle layout-related properties and methods, allowing for flexible and dynamic UI arrangements. This interface is typically used in UI frameworks where layout management is a key concern.

Properties

Bottom

Gets the distance, in dips, between the bottom edge of the control and the top edge of its container's client area.

Bounds

Gets or sets the bounds relative to the parent, in device-independent units.

ChildCount

Gets number of children items.

ClientRectangle

Gets a rectangle which describes the client area inside of the control, in device-independent units.

ClientSize

Gets or sets size of the client area, in device-independent units.

ColumnIndex

Gets or sets column index which is used by the Grid control.

ColumnSpan

Gets or sets a value that indicates the total number of columns this control's content spans within a container.

Dock

Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent.

HasChildren

Gets whether there are any children.

Height

Gets or sets the height of the control.

HorizontalAlignment

Gets or sets the horizontal alignment applied to this control when it is positioned within a parent control.

IgnoreLayout

Gets or sets whether layout rules are ignored for this control.

IsLayoutPerform

Gets whether layout is currently performed.

IsLayoutSuspended

Gets whether layout is suspended.

Layout

Gets or sets layout style of the child items, elements or controls.

LayoutData

Gets or sets cached data for the layout engine.

LayoutProps

Gets or sets additional properties which are layout specific.

Left

Gets or sets the distance between the left edge of the control and the left edge of its container's client area.

Location

Gets or sets the location of upper-left corner of the control, in device-independent units.

Margin

Gets or sets the outer margin of a control.

MaxHeight

Gets or sets the maximum height the window can be resized to.

MaxWidth

Gets or sets the maximum width the window can be resized to.

MaximumSize

Gets or sets the maximum size the window can be resized to.

MinChildMargin

Gets or sets minimal value of the child's Margin property.

MinHeight

Gets or sets the minimum height the window can be resized to.

MinWidth

Gets or sets the minimum width the window can be resized to.

MinimumSize

Gets or sets the minimum size the window can be resized to.

Padding

Gets or sets the padding inside a control.

Right

Gets the distance, in dips, between the right edge of the control and the left edge of its container's client area.

RowIndex

Gets or sets row index which is used by the Grid control.

RowSpan

Gets or sets a value that indicates the total number of rows this control's content spans within a container.

Size

Gets or sets the size of the control.

SuggestedHeight

Gets or sets the suggested height of the control.

SuggestedSize

Gets or sets the suggested size of the control.

SuggestedWidth

Gets or sets the suggested width of the control.

Top

Gets or sets the distance between the top edge of the control and the top edge of its container's client area.

VerticalAlignment

Gets or sets the vertical alignment applied to this control when it is positioned within a parent control.

Visible

Gets or sets a value indicating whether the control and all its child controls are displayed.

Width

Gets or sets the width of the control.

Methods

GetPreferredSize()

Calls GetPreferredSize(PreferredSizeContext) with PositiveInfinity as a parameter value.

GetPreferredSize(PreferredSizeContext)

Retrieves the size of a rectangular area into which a control can be fitted, in device-independent units.

ResetSuggestedHeight()

Resets SuggestedHeight property.

ResetSuggestedSize()

Resets SuggestedSize property.

ResetSuggestedWidth()

Resets SuggestedWidth property.

SetBounds(float, float, float, float, BoundsSpecified)

Sets the specified bounds of the control to new location and size.