Table of Contents

Class ControlAndLabel

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

Implements labeled control.

[ControlCategory("Hidden")]
public abstract class ControlAndLabel : Control, IBaseObject, IDisposableObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, IControlAndLabel, INotifyDataErrorInfo
Inheritance
ControlAndLabel
Implements
Derived

Remarks

This is an abstract class. You can use TextBoxAndLabel, ComboBoxAndLabel or derive from ControlAndLabel in order to implement your own custom labeled control.

Constructors

ControlAndLabel()

Initializes a new instance of the ControlAndLabel class.

Fields

CreateDefaultLabel

Gets or sets function that creates default labels for the ControlAndLabel controls.

DefaultControlLabelDistance

Gets or sets default distance between control and label.

Properties

ErrorPicture

Gets attached PictureBox control which displays validation error information.

ErrorPictureVisible

Gets or sets visibility of the attached PictureBox control which displays validation error information.

HasErrors

Gets a value that indicates whether this control or its child controls have validation errors.

InnerSuggestedHeight

Gets or sets SuggestedHeight property of the main child control.

InnerSuggestedSize

Gets or sets SuggestedSize property of the main child control.

InnerSuggestedWidth

Gets or sets SuggestedWidth property of the main child control.

Label

Gets attached Label control.

LabelSuggestedWidth

Gets or sets SuggestedWidth property of the main child control.

LabelVisible

Gets or sets visibility of the attached Label control.

MainControl

Gets main child control.

Title

Gets or sets text of the attached Label control.

Methods

CreateControl()

Creates main child control.

CreateLabel()

Creates label control.

GetErrors(string?)

Gets the validation errors for this control and its child controls.