XPTable.Models.Cell.SetState C# (CSharp) Méthode

SetState() private méthode

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
Résultat void
        internal void SetState(int flag, bool value)
        {
            this.state = (byte) (value ? (this.state | flag) : (this.state & ~flag));
        }