ARCed.Scintilla.Design.FlagCheckedListBox.GetCurrentValue C# (CSharp) Method

GetCurrentValue() public method

public GetCurrentValue ( ) : int
return int
        public int GetCurrentValue()
        {
            int sum = 0;

            for (int i = 0; i < Items.Count; i++)
            {
                var item = Items[i] as FlagCheckedListBoxItem;

                if (GetItemChecked(i))
                    sum |= item.value;
            }

            return sum;
        }