51 references to Contains
PresentationFramework (1)
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
997
if (property.Attributes.
Contains
(_nullDefaultValueAttribute))
System.ComponentModel.TypeConverter (3)
System\ComponentModel\AttributeCollection.cs (1)
230
if (!
Contains
(attributes[i]))
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
699
private bool AttributesContainsDesignerVisibilityContent() => Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Content);
System\ComponentModel\TypeConverter.cs (1)
374
get { return Attributes.
Contains
(ReadOnlyAttribute.Yes); }
System.Data.Common (1)
System\Data\xmlsaver.cs (1)
227
private static bool ContainsDesignerSerializationVisibleAttribute(PropertyDescriptor pd) => pd.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Visible);
System.Windows.Forms (6)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
371
forceReadOnly |= TypeDescriptor.GetAttributes(value).
Contains
(InheritanceAttribute.InheritedReadOnly);
407
if (Attributes.
Contains
(PasswordPropertyTextAttribute.Yes))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
199
propertyEntry.PropertyDescriptor.Attributes.
Contains
(NotifyParentPropertyAttribute.Yes))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.cs (1)
45
|| TypeDescriptor.GetAttributes(target).
Contains
(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
361
propertyEntry.PropertyDescriptor.Attributes.
Contains
(NotifyParentPropertyAttribute.Yes))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
128
|| TypeDescriptor.GetAttributes(Target).
Contains
(InheritanceAttribute.InheritedReadOnly))
System.Windows.Forms.Design (39)
System\ComponentModel\Design\DesignerHost.cs (1)
234
&& !TypeDescriptor.GetAttributes(extenderComponent).
Contains
(InheritanceAttribute.InheritedReadOnly)
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (2)
37
propertyDescriptor.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Content))
279
return _propertyDescriptor.ShouldSerializeValue(component) && Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Content);
System\ComponentModel\Design\MenuCommandService.cs (1)
200
!TypeDescriptor.GetAttributes(selectedComponent).
Contains
(InheritanceAttribute.InheritedReadOnly))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (3)
541
if (md._member.Attributes.
Contains
(DesignOnlyAttribute.Yes))
584
&& !prop.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Hidden))
586
if (!prop.IsReadOnly || prop.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Content))
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (4)
69
if (!prop.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Hidden) &&
70
prop.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Content) &&
351
if (!prop.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Hidden))
364
else if (prop.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Content))
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
2154
if (!property.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Hidden))
2210
if (property.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Visible))
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
411
if (o is IComponent && TypeDescriptor.GetAttributes(o).
Contains
(InheritanceAttribute.InheritedReadOnly))
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
68
!property.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Hidden))
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (1)
79
bool serializingContent = (descriptor is not null && descriptor.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Content));
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (3)
98
bool serializeContents = propertyToSerialize.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Content);
380
if (!propertyToSerialize.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Content))
393
bool isDesignTime = propertyToSerialize.Attributes.
Contains
(DesignOnlyAttribute.Yes);
System\ComponentModel\Design\Serialization\ResourcePropertyMemberCodeDomSerializer.cs (1)
85
if (!shouldSerialize && !descriptor.Attributes.
Contains
(DesignOnlyAttribute.Yes))
System\ComponentModel\Design\UndoEngine.cs (1)
456
!prop.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Hidden) &&
System\ComponentModel\Design\UndoEngine.UndoUnit.ChangeUndoEvent.cs (1)
136
if (member is not null && !(member.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Hidden)))
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (2)
178
if (e.Member is not null && e.Member.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Content) &&
225
(e.Member?.Attributes is not null && e.Member.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Content)))
System\Windows\Forms\Design\CommandSet.cs (1)
2059
if ((TypeDescriptor.GetAttributes(curComp).
Contains
(DesignTimeVisibleAttribute.Yes)) || curComp is ToolStripItem)
System\Windows\Forms\Design\ComponentTray.cs (1)
813
return TypeDescriptor.GetAttributes(component).
Contains
(DesignTimeVisibleAttribute.Yes);
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (1)
243
if (TypeDescriptor.GetAttributes(component).
Contains
(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Design\ControlDesigner.cs (4)
315
&& !(attributes.
Contains
(DesignerSerializationVisibilityAttribute.Hidden)
316
|| attributes.
Contains
(BrowsableAttribute.No)))
768
if (TypeDescriptor.GetAttributes(Component).
Contains
(DesignTimeVisibleAttribute.Yes)
826
if (TypeDescriptor.GetAttributes(Component).
Contains
(DesignTimeVisibleAttribute.Yes)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
74
TypeDescriptor.GetAttributes(_realCollection[i]).
Contains
(InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\DocumentDesigner.cs (1)
896
if (!addControl || !TypeDescriptor.GetAttributes(component).
Contains
(DesignTimeVisibleAttribute.Yes))
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
264
if (!TypeDescriptor.GetAttributes(comps[i]).
Contains
(DesignTimeVisibleAttribute.Yes))
807
if (TypeDescriptor.GetAttributes(comp).
Contains
(DesignTimeVisibleAttribute.Yes))
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
942
!(prop.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Hidden) ||
943
prop.Attributes.
Contains
(BrowsableAttribute.No)))
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
550
if (sizeProp is not null && sizeProp.Attributes.
Contains
(DesignerSerializationVisibilityAttribute.Hidden))
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2212
TypeDescriptor.GetAttributes(_realCollection[i]).
Contains
(InheritanceAttribute.NotInherited))
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
202
_propertyGrid.BrowsableAttributes.
Contains
(newAttributes[0]).Should().BeTrue();