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