5 implementations of Properties
System.Windows.Forms (5)
System\Windows\Forms\Control.cs (1)
12608PropertyStore 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)) 152element.Properties.TryGetValue(s_specifiedBoundsProperty, out Rectangle rectangle) 160internal static void ResetPadding(IArrangedElement element) => element.Properties.RemoveValue(s_paddingProperty); 188element.Properties.AddValue(s_marginProperty, value); 203element.Properties.AddValue(s_maximumSizeProperty, value); 225element.Properties.AddValue(s_minimumSizeProperty, value); 254element.Properties.AddValue(s_paddingProperty, value); 319element.Properties.AddValue(s_specifiedBoundsProperty, originalBounds); 325if (element.Properties.ContainsKey(s_specifiedBoundsProperty)) 328element.Properties.AddValue(s_specifiedBoundsProperty, LayoutUtils.s_maxRectangle); 337element.Properties.AddValue(s_specifiedBoundsProperty, bounds); 347element.Properties.AddValue(s_preferredSizeCacheProperty, LayoutUtils.s_invalidSize); 377if (element.Properties.TryGetValue(s_preferredSizeCacheProperty, out Size size) && (size != LayoutUtils.s_invalidSize)) 393element.Properties.AddValue(s_preferredSizeCacheProperty, value); 676if (element.Properties.TryGetValue(s_layoutBoundsProperty, out Size size)) 699element.Properties.AddValue(s_layoutBoundsProperty, value); 707return element.Properties.ContainsKey(s_layoutBoundsProperty); 723element.Properties.GetValueOrDefault<BitVector32>(s_layoutStateProperty); 726element.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)
283!container.Properties.TryGetValue(s_wrapContentsProperty, out bool wrap) || wrap; 287container.Properties.AddValue(s_wrapContentsProperty, value); 293container.Properties.GetValueOrDefault<FlowDirection>(s_flowDirectionProperty); 299container.Properties.AddValue(s_flowDirectionProperty, value);
System\Windows\Forms\Layout\TableLayout.cs (4)
1352if (!element.Properties.TryGetValue(s_layoutInfoProperty, out LayoutInfo? layoutInfo)) 1363element.Properties.AddOrRemoveValue(s_layoutInfoProperty, value); 1377if (!container.Properties.TryGetValue(s_containerInfoProperty, out ContainerInfo? containerInfo)) 1379containerInfo = container.Properties.AddValue(s_containerInfoProperty, new ContainerInfo(container));