9 references to TryGetValueOrNull
System.Windows.Forms (9)
System\Windows\Forms\Control.cs (1)
567
if (Properties.
TryGetValueOrNull
(s_ambientPropertiesServiceProperty, out AmbientProperties? ambientProperties))
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (4)
125
get => Properties.
TryGetValueOrNull
(s_propDataSourceNullValue, out object? value)
131
if (Properties.
TryGetValueOrNull
(s_propDataSourceNullValue, out object? oldValue)
210
if (!Properties.
TryGetValueOrNull
(s_propDataSourceNullValue, out object? value))
229
if (!Properties.
TryGetValueOrNull
(s_propNullValue, out object? nullValue))
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
708
return Properties.
TryGetValueOrNull
(s_propCellValue, out object? value) ? value : OwningColumn?.Name;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1866
get => 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)"/>