adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / Bitmask Class / SetFlags Method
The value to set bits in
The mask containing the bits to set or clear
Specify true to set the bits or false to clear them


In This Topic
    SetFlags Method
    In This Topic
    Sets or clears a mask in a bitmask.
    Syntax
    'Declaration
     
    
    <PureAttribute()>
    Public Shared Function SetFlags( _
       ByVal value As Integer, _
       ByVal mask As Integer, _
       ByVal setting As Boolean _
    ) As Integer
    [Pure()]
    public static int SetFlags( 
       int value,
       int mask,
       bool setting
    )
    [Pure()]
    public:
    static int SetFlags( 
       int value,
       int mask,
       bool setting
    ) 

    Parameters

    value
    The value to set bits in
    mask
    The mask containing the bits to set or clear
    setting
    Specify true to set the bits or false to clear them

    Return Value

    The result of setting or clearing the specified bits in value
    Remarks
    This sets or clears a value, not a bit, by performing a bitwise OR between val and mask.
    See Also