Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Geometry Namespace / FlagsHelper Class / SetUnset<T> Method
The data to modify
The flag to set/unset
If true, the flag is set, else it's unset

In This Topic
    SetUnset<T> Method
    In This Topic
    Sets or unsets a flag depending on the set value.
    Syntax
    'Declaration
     
    Public Shared Sub SetUnset(Of T As {New, Struct})( _
       ByRef flags As T, _
       ByVal flag As T, _
       ByVal set As Boolean _
    ) 
    public static void SetUnset<T>( 
       ref T flags,
       T flag,
       bool set
    )
    where T: new(), struct

    Parameters

    flags
    The data to modify
    flag
    The flag to set/unset
    set
    If true, the flag is set, else it's unset

    Type Parameters

    T
    See Also