C# Class Nexus.UI.FlagEnumUITypeEditor.FlagCheckedListBox.FlagCheckedListBoxItem

A list item that represents a flag enum item.
Mostrar archivo Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
FlagCheckedListBoxItem ( Int32 p_intValue, string p_strDisplayName ) : System

A simple constructor that initializes the object with the given values.

IsMemberFlag ( FlagCheckedListBoxItem p_lbiComposite ) : bool

Determines if the represented value's flag is set in the composite flag represented by the given item.

ToString ( ) : string

Returns the strign representation of the item.

This returns the display name of the item.

Method Details

FlagCheckedListBoxItem() public method

A simple constructor that initializes the object with the given values.
public FlagCheckedListBoxItem ( Int32 p_intValue, string p_strDisplayName ) : System
p_intValue System.Int32 The value that item is representing.
p_strDisplayName string The display name of the item.
return System

IsMemberFlag() public method

Determines if the represented value's flag is set in the composite flag represented by the given item.
public IsMemberFlag ( FlagCheckedListBoxItem p_lbiComposite ) : bool
p_lbiComposite FlagCheckedListBoxItem The item representing the composite flag for which /// it is to be determined if it includes this item's represented value.
return bool

ToString() public method

Returns the strign representation of the item.
This returns the display name of the item.
public ToString ( ) : string
return string