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