Table of Contents

Class FlagSelector

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

Provides a user interface for displaying and selecting non-mutually-exclusive flags from a provided dictionary. FlagSelector<TFlagsEnum> provides a type-safe version where a [Flags] enum can be provided.

public class FlagSelector : SelectorBase, IDisposable, ISupportInitializeNotification, ISupportInitialize, IOrientation, IDesignable
Inheritance
FlagSelector
Implements
Derived
FlagSelector<TFlagsEnum>
Inherited Members
Extension Methods

Properties

Value

Gets or sets the value of the selected flags.

Methods

EnableForDesign()

Causes the View to enable design-time mode. This typically means that the view will load demo data and be configured to allow for design-time manipulation.

OnCreatedSubViews()

Called after CreateSubViews() creates the default subviews (Checkboxes and ValueField).

OnCreatingSubViews()

Called before CreateSubViews() creates the default subviews (Checkboxes and ValueField).

OnSubViewAdded(View)

Called when a SubView has been added to this View.

UpdateChecked()

Called when the checked state of the checkboxes needs to be updated.