70 references to Flags
System.Windows.Forms (70)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ArrayElementGridEntry.cs (2)
14SetFlag(Flags.RenderReadOnly, parent.EntryFlags.HasFlag(Flags.RenderReadOnly) || parent.ForceReadOnly);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (3)
33SetFlag(Flags.LabelBold, true); 64public override bool Expandable => !GetFlagSet(Flags.ExpandableFailed); 116bool bold = EntryFlags.HasFlag(Flags.LabelBold);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (54)
48private Flags _flags; 258internal bool Disposed => GetFlagSet(Flags.Disposed); 264internal virtual bool Enumerable => EntryFlags.HasFlag(Flags.StandardValuesSupported); 270bool expandable = GetFlagSet(Flags.Expandable); 277if (GetFlagSet(Flags.ExpandableFailed)) 297internal virtual bool ForceReadOnly => (_flags & Flags.ForceReadOnly) != 0; 299protected void SetForceReadOnlyFlag() => _flags |= Flags.ForceReadOnly; 311return GetFlagSet(Flags.Expand); 322SetFlag(Flags.Expand, value); 326SetFlag(Flags.Expand, false); 330SetFlag(Flags.Expand, childrenExpandable); 353public Flags EntryFlags 357if (_flags.HasFlag(Flags.Checked)) 362_flags |= Flags.Checked; 376_flags |= Flags.StandardValuesSupported; 382_flags |= Flags.TextEditable; 391_flags |= Flags.Immutable; 396_flags |= Flags.Expandable; 401if (!forceReadOnly && !_flags.HasFlag(Flags.TextEditable) && !hasImmutableAttribute) 403_flags |= Flags.ReadOnlyEditable; 409_flags |= Flags.RenderPassword; 419_flags |= Flags.CustomPaint; 431_flags |= Flags.ModalEditable; 434_flags |= Flags.ReadOnlyEditable; 439_flags |= Flags.DropDownEditable; 560if (!_flags.HasFlag(Flags.Checked)) 565if (_flags.HasFlag(Flags.CustomPaint) || _flags.HasFlag(Flags.NoCustomPaint)) 567return _flags.HasFlag(Flags.CustomPaint); 572_flags |= Flags.CustomPaint; 577_flags |= Flags.NoCustomPaint; 583return EntryFlags.HasFlag(Flags.CustomPaint); 592if (value != GetFlagSet(Flags.Expandable)) 594SetFlag(Flags.ExpandableFailed, false); 595SetFlag(Flags.Expandable, value); 600public bool IsTextEditable => IsValueEditable && EntryFlags.HasFlag(Flags.TextEditable); 604&& GetFlagSet(Flags.DropDownEditable | Flags.TextEditable | Flags.ModalEditable | Flags.StandardValuesSupported); 635public virtual bool NeedsDropDownButton => EntryFlags.HasFlag(Flags.DropDownEditable); 641=> EntryFlags.HasFlag(Flags.ModalEditable) && (IsValueEditable || EntryFlags.HasFlag(Flags.ReadOnlyEditable)); 756public bool ShouldRenderPassword => EntryFlags.HasFlag(Flags.RenderPassword); 760|| EntryFlags.HasFlag(Flags.RenderReadOnly) 761|| (!IsValueEditable && !EntryFlags.HasFlag(Flags.ReadOnlyEditable)); 928if (!GetFlagSet(Flags.Expandable)) 978SetFlag(Flags.ExpandableFailed, true); 1018_flags |= Flags.Checked; 1020SetFlag(Flags.Disposed, true); 1391newEntry._flags |= Flags.ForceReadOnly; 1481protected bool GetFlagSet(Flags flags) => (flags & EntryFlags) != 0; 1534bool bold = EntryFlags.HasFlag(Flags.LabelBold); 2043protected void SetFlag(Flags flag, bool value)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (5)
69bool expandable = GetFlagSet(Flags.Expandable); 76if (GetFlagSet(Flags.ExpandableFailed)) 119if (_mergedDescriptor.PropertyType.IsValueType || EntryFlags.HasFlag(Flags.Immutable)) 140SetFlag(Flags.ExpandableFailed, true); 153=> _mergedDescriptor.PropertyType.IsValueType || EntryFlags.HasFlag(Flags.Immutable)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.cs (1)
77SetFlag(Flags.ExpandableFailed, true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (5)
250if (PropertyDescriptor.IsReadOnly && !_readOnlyVerified && GetFlagSet(Flags.ReadOnlyEditable)) 256SetFlag(Flags.ReadOnlyEditable, false); 257SetFlag(Flags.RenderReadOnly, true); 348SetFlag(Flags.TextEditable, false); 353SetFlag(Flags.Expandable, true);