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 AbstractControl[])

Initializes a new instance of the ControlSet class.

ControlSet(IReadOnlyList<AbstractControl>)

Initializes a new instance of the ControlSet class.

Fields

Empty

Gets ControlSet without items.

Properties

First

Gets first item in the Items collection or Null.

InnerMaxWidth

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

IsEmpty

Gets whether Items collection is empty.

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. Control must implement IControlAndLabel interface in order to allow this method to work.

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.

DoInsideLayout(Action)

Executes action between calls to SuspendLayout() and ResumeLayout().

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 SuggestedWidth property for the main child of all the controls in the set. Control must implement IControlAndLabel interface in order to allow this method to work.

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 SuggestedWidth property for the inner labels of all controls in the set. Control must implement IControlAndLabel interface in order to allow this method to work.

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.

MarginBottom(double)

Sets MarginBottom property for all the controls in the set.

MarginLeft(double)

Sets MarginLeft property for all the controls in the set.

MarginRight(double)

Sets MarginRight property for all the controls in the set.

MarginTop(double)

Sets MarginTop 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 AbstractControl[])

Initializes a new instance of the ControlSet class.

New(IReadOnlyList<AbstractControl>)

Initializes a new instance of the ControlSet class.

Padding(Thickness)

Sets Padding property for all the controls in the set.

PaddingBottom(double)

Sets PaddingBottom property for all the controls in the set.

PaddingLeft(double)

Sets PaddingLeft property for all the controls in the set.

PaddingRight(double)

Sets PaddingRight property for all the controls in the set.

PaddingTop(double)

Sets PaddingTop property for all the controls in the set.

Parent(AbstractControl?)

Sets Parent property for all the controls in the set.

ParentBackColor(bool)

Sets ParentBackColor property for all the controls in the set.

ParentForeColor(bool)

Sets ParentForeColor property for all the controls in the set.

ResumeLayout()

Calls SuspendLayout() for all parents of 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.

SuspendLayout()

Calls SuspendLayout() for all parents of the controls 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.

WhenCheckedChanged(EventHandler)

Adds event handler to 'CheckedChanged' event.

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.