XPTable.Models.Cell.SetState C# (CSharp) Method

SetState() private method

Sets the state represented by the specified state flag to the specified value
private SetState ( int flag, bool value ) : void
flag int A flag that represents the state to be set
value bool The new value of the state
return void
        internal void SetState(int flag, bool value)
        {
            this.state = (byte) (value ? (this.state | flag) : (this.state & ~flag));
        }