9 references to TryGetValueOrNull
System.Windows.Forms (9)
System\Windows\Forms\Control.cs (1)
568if (Properties.TryGetValueOrNull(s_ambientPropertiesServiceProperty, out AmbientProperties? ambientProperties))
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (4)
125get => Properties.TryGetValueOrNull(s_propDataSourceNullValue, out object? value) 131if (Properties.TryGetValueOrNull(s_propDataSourceNullValue, out object? oldValue) 210if (!Properties.TryGetValueOrNull(s_propDataSourceNullValue, out object? value)) 229if (!Properties.TryGetValueOrNull(s_propNullValue, out object? nullValue))
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
708return Properties.TryGetValueOrNull(s_propCellValue, out object? value) ? value : OwningColumn?.Name;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1858get => Properties.TryGetValueOrNull(s_textProperty, out string? value) ? value : string.Empty;
System\Windows\Forms\PropertyStore.cs (2)
80/// Tries to get the value for the given key. Use <see cref="TryGetValueOrNull{T}(int, out T)"/> if 83/// <inheritdoc cref="TryGetValueOrNull{T}(int, out T)"/>