C# Class Nexus.UI.FlagEnumUITypeEditor.FlagCheckedListBox

A list box that displays flag enums.
Inheritance: System.Windows.Forms.CheckedListBox
Mostra file Open project: NexusMods/NexusModManager-4.5

Private Properties

Property Type Description
Add FlagCheckedListBoxItem
Add FlagCheckedListBoxItem
AddListItems void

Public Methods

Method Description
FlagCheckedListBox ( ) : System

The default constructor.

GetCurrentValue ( ) : Int32

Gets the value currently represented by the selected list items.

Protected Methods

Method Description
UpdateCheckedItems ( Int32 p_intCompositeFlag ) : void

Sets the check states of each item base on the given composite flag.

Private Methods

Method Description
Add ( FlagCheckedListBoxItem p_lbiEnumItem ) : FlagCheckedListBoxItem

Adds a FlagCheckedListBoxItem to the list.

Add ( Int32 p_intValue, string p_strDisplayName ) : FlagCheckedListBoxItem

Adds an integer value to the listbox.

AddListItems ( Type p_tpEnumType ) : void

Files the list with item representing the possible values of the enum.

Method Details

FlagCheckedListBox() public method

The default constructor.
public FlagCheckedListBox ( ) : System
return System

GetCurrentValue() public method

Gets the value currently represented by the selected list items.
public GetCurrentValue ( ) : Int32
return System.Int32

UpdateCheckedItems() protected method

Sets the check states of each item base on the given composite flag.
protected UpdateCheckedItems ( Int32 p_intCompositeFlag ) : void
p_intCompositeFlag System.Int32 The composite flag value to represent with the list box.
return void