1. Declaration (1<0, 1<1, 1<2 can be used instead of 0x01, 0x02, 0x03)
[Flags]public EnumFilter{None = 0x00、Plate = 0x01、Profile = 0x02、Assembly = 0x04、Fillet = 0x10、Butt = 0x20、WeldHolding = 0x40, Full = 0x80, Deep = 0x100, Particle = 0x200, Special = 0x400, Feature = 0x1000, Marginance =0X2000, Option, Applinetc.000。MaxValue};public EnumFilter CurrentFilter = EnumFilter。すべて;
2. I’ll make use of it
// Select the CurrentF Filter= Enterprise.No,// Current Filter = = EnumFilter.All;// CurrentFilter = EnumFilter です.Platform | Enterprise.Profile;//の .Profile;//Pl .Margin | Enterprise | Enter.Dimension;// Current Filter &= ~EnumFilter.Margin;// 값 – 으전있 고면지 CurrentFilter ^=Enterprise.Specifies the boot;// CurrentFilter= Enter.All^Enables the ^Enum filter.^Enables 값 있는지 확인 (.NET 4.0 Current filter.HasFlag(EnumFilter)。フル);
// Select CurrentFilter = EnumFilter.None;// Current Filter = = EnumFilter.All;// CurrentFilter = EnumFilter です.Plate | EnumFilter.Profile;// Current Filter |= EnumFilter.Margin | Enum filter.Dimension;// Current Filters &= ~EnumFilter.Margin;// 값 – 으전있 고면지 CurrentFilter ^= EnumFilter.Specifies Butt;// CurrentFilter = EnumFilter.All ^Enum filters, part of the ^Enum filter. Special;// 특정 값 있는지 확인 (.NET 4.0 Current filter.HasFlag(EnumFilter)。フル);
// Select CurrentFilter = EnumFilter.None;// Current Filter = = EnumFilter.All;// CurrentFilter = EnumFilter です.Plate | EnumFilter.Profile;// Current Filter |= EnumFilter.Margin | Enum filter.Dimension;// Current Filters &= ~EnumFilter.Margin;// 값 – 으전있 고면지 CurrentFilter ^= EnumFilter.Specifies Butt;// CurrentFilter = EnumFilter.All ^Enum filters, part of the ^Enum filter. Special;// 특정 값 있는지 확인 (.NET 4.0 Current filter.HasFlag(EnumFilter)。フル);