ARCed.Scintilla.Design.FlagCheckedListBox.GetCurrentValue C# (CSharp) Метод

GetCurrentValue() публичный метод

public GetCurrentValue ( ) : int
Результат 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;
        }