5 implementations of Properties
System.Windows.Forms (5)
System\Windows\Forms\Control.cs (1)
12581PropertyStore IArrangedElement.Properties
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
980PropertyStore IArrangedElement.Properties => Properties;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
70PropertyStore IArrangedElement.Properties
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
662PropertyStore IArrangedElement.Properties
System\Windows\Forms\Layout\ArrangedElement.cs (1)
113PropertyStore IArrangedElement.Properties
39 references to Properties
System.Windows.Forms (39)
System\Windows\Forms\Layout\CommonProperties.cs (23)
54internal static void ClearMaximumSize(IArrangedElement element) => element.Properties.RemoveValue(s_maximumSizeProperty); 86if (element.Properties.TryGetValue(s_marginProperty, out Padding padding)) 99if (element.Properties.TryGetValue(s_maximumSizeProperty, out Size size)) 112if (element.Properties.TryGetValue(s_minimumSizeProperty, out Size size)) 135if (element.Properties.TryGetValue(s_paddingProperty, out Padding padding)) 153if (element.Properties.TryGetValue(s_specifiedBoundsProperty, out Rectangle rectangle) 165internal static void ResetPadding(IArrangedElement element) => element.Properties.RemoveValue(s_paddingProperty); 193element.Properties.AddValue(s_marginProperty, value); 208element.Properties.AddValue(s_maximumSizeProperty, value); 230element.Properties.AddValue(s_minimumSizeProperty, value); 259element.Properties.AddValue(s_paddingProperty, value); 324element.Properties.AddValue(s_specifiedBoundsProperty, originalBounds); 330if (element.Properties.ContainsKey(s_specifiedBoundsProperty)) 333element.Properties.AddValue(s_specifiedBoundsProperty, LayoutUtils.s_maxRectangle); 342element.Properties.AddValue(s_specifiedBoundsProperty, bounds); 352element.Properties.AddValue(s_preferredSizeCacheProperty, LayoutUtils.s_invalidSize); 382if (element.Properties.TryGetValue(s_preferredSizeCacheProperty, out Size size) && (size != LayoutUtils.s_invalidSize)) 398element.Properties.AddValue(s_preferredSizeCacheProperty, value); 681if (element.Properties.TryGetValue(s_layoutBoundsProperty, out Size size)) 704element.Properties.AddValue(s_layoutBoundsProperty, value); 712return element.Properties.ContainsKey(s_layoutBoundsProperty); 728element.Properties.GetValueOrDefault<BitVector32>(s_layoutStateProperty); 731element.Properties.AddValue(s_layoutStateProperty, state);
System\Windows\Forms\Layout\DefaultLayout.cs (8)
1007if (container.Properties.TryGetValue(s_cachedBoundsProperty, out IDictionary? dictionary)) 1021container is not null && container.Properties.ContainsKey(s_cachedBoundsProperty); 1036if (!container.Properties.TryGetValue(s_cachedBoundsProperty, out IDictionary? dictionary)) 1070private static void ClearCachedBounds(IArrangedElement container) => container.Properties.RemoveValue(s_cachedBoundsProperty); 1076if (!container.Properties.TryGetValue(s_cachedBoundsProperty, out IDictionary? dictionary)) 1078dictionary = container.Properties.AddValue(s_cachedBoundsProperty, new HybridDictionary()); 1086element.Properties.GetValueOrDefault<AnchorInfo>(s_layoutInfoProperty); 1089element.Properties.AddOrRemoveValue(s_layoutInfoProperty, value);
System\Windows\Forms\Layout\FlowLayout.cs (4)
282!container.Properties.TryGetValue(s_wrapContentsProperty, out bool wrap) || wrap; 286container.Properties.AddValue(s_wrapContentsProperty, value); 292container.Properties.GetValueOrDefault<FlowDirection>(s_flowDirectionProperty); 298container.Properties.AddValue(s_flowDirectionProperty, value);
System\Windows\Forms\Layout\TableLayout.cs (4)
1353if (!element.Properties.TryGetValue(s_layoutInfoProperty, out LayoutInfo? layoutInfo)) 1364element.Properties.AddOrRemoveValue(s_layoutInfoProperty, value); 1378if (!container.Properties.TryGetValue(s_containerInfoProperty, out ContainerInfo? containerInfo)) 1380containerInfo = container.Properties.AddValue(s_containerInfoProperty, new ContainerInfo(container));