Table of Contents

Class ControlSet

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

Allows to perform group operations on the controls.

public class ControlSet
Inheritance
ControlSet

Constructors

ControlSet(params Control[])

Initializes a new instance of the ControlSet class.

ControlSet(IReadOnlyList<Control>)

Initializes a new instance of the ControlSet class.

Fields

Empty

Gets ControlSet without items.

Properties

InnerMaxWidth

Gets the maximum inner control width among all controls in the set.

this[int]

Gets or sets the element at the specified index.

Items

Gets all controls which will be affected by the group operations.

LabelMaxWidth

Gets the maximum inner label width among all controls in the set.

MaxHeight

Gets the maximum height among all controls in the set.

MaxWidth

Gets the maximum width among all controls in the set.

Methods

Action<T>(Action<T>)

Executes specified action for all the controls in the set.

BackgroundColor(Color?)

Sets background color for all the controls in the set.

Enabled(bool)

Sets Enabled property for all the controls in the set.

Enabled(int, bool)

Sets Enabled property for the specified control in the set.

Font(Font?)

Sets font for all the controls in the set.

ForegroundColor(Color?)

Sets background color for all the controls in the set.

GridFromColumns(params ControlSet[])

Creates two dimensional array 'Control[,]' from the specified columns with controls.

HorizontalAlignment(HorizontalAlignment)

Sets horizontal alignmnent for all the controls in the set.

InnerSuggestedWidth(double)

Sets InnerSuggestedWidth property for all the controls in the set.

InnerSuggestedWidthToMax()

Sets suggested width for inner childs of the controls in the set.

IsBold(bool)

Sets IsBold for all the controls in the set.

IsEditable(bool)

Sets IsEditable property for all the controls in the set.

LabelSuggestedWidth(double)

Sets LabelSuggestedWidth property for all the controls in the set.

LabelSuggestedWidthToMax()

Sets suggested width for all the controls in the set.

Margin(Thickness)

Sets Margin property for all the controls in the set.

Margin(double, double, double, double)

Sets Margin property for all the controls in the set.

MinHeight(double)

Sets MinHeight property for all the controls in the set.

MinSize(SizeD)

Sets MinimumSize property for all the controls in the set.

MinWidth(double)

Sets MinWidth property for all the controls in the set.

New(params Control[])

Initializes a new instance of the ControlSet class.

New(IReadOnlyList<Control>)

Initializes a new instance of the ControlSet class.

Padding(Thickness)

Sets Padding property for all the controls in the set.

Parent(Control?)

Sets Parent property for all the controls in the set.

Size(SizeD)

Sets Size property for all the controls in the set.

SuggestedHeight(double)

Sets the suggested height for all the controls in the set.

SuggestedHeightToMax()

Sets suggested height for all the controls to the max value in the set.

SuggestedWidth(double)

Sets the suggested width for all the controls in the set.

SuggestedWidthToMax()

Sets suggested width for all the controls to the max value in the set.

VerticalAlignment(VerticalAlignment)

Sets vertical alignmnent for all the controls in the set.

Visible(bool)

Sets Visible property for all the controls in the set.

Width(double)

Sets the width for all the controls in the set.

WidthToMax()

Sets suggested width for all the controls to the max value in the set.