142 references to GetValueOrDefault
System.Windows.Forms (142)
System\Windows\Forms\Control.cs (25)
477
get => Properties.
GetValueOrDefault
<string>(s_accessibleDefaultActionProperty);
490
get => Properties.
GetValueOrDefault
<string>(s_accessibleDescriptionProperty);
503
get => Properties.
GetValueOrDefault
<string>(s_accessibleNameProperty);
515
get => Properties.
GetValueOrDefault
(s_accessibleRoleProperty, AccessibleRole.Default);
653
get => Properties.
GetValueOrDefault
(s_autoScrollOffsetProperty, Point.Empty);
840
get => Properties.
GetValueOrDefault
<Image>(s_backgroundImageProperty);
870
get => Properties.
GetValueOrDefault
(s_backgroundImageLayoutProperty, ImageLayout.Tile);
930
Properties.
GetValueOrDefault
<ControlBindingsCollection>(s_bindingsProperty)?.Clear();
1111
int cacheTextCounter = Properties.
GetValueOrDefault
<int>(s_cacheTextCountProperty);
1124
int cacheTextCounter = Properties.
GetValueOrDefault
<int>(s_cacheTextCountProperty);
1141
_text = Properties.
GetValueOrDefault
<string?>(s_cacheTextFieldProperty);
1231
get => Properties.
GetValueOrDefault
<ContextMenuStrip>(s_contextMenuStripProperty);
1481
Cursor? localCursor = Properties.
GetValueOrDefault
<Cursor>(s_cursorProperty);
1812
Font? previous = Properties.
GetValueOrDefault
<Font>(s_fontProperty);
1940
fontHandle = Properties.
GetValueOrDefault
<FontHandleWrapper?>(s_fontHandleWrapperProperty);
2595
string? name = Properties.
GetValueOrDefault
<string>(s_namePropertyProperty);
2665
internal Color RawBackColor => Properties.
GetValueOrDefault
<Color>(s_backColorProperty);
2715
get => Properties.
GetValueOrDefault
<Region>(s_regionProperty);
3109
get => Properties.
GetValueOrDefault
<object>(s_userDataProperty);
4727
Properties.
GetValueOrDefault
<ActiveXImpl>(s_activeXImplProperty)?.Dispose();
6863
Color backColor = Properties.
GetValueOrDefault
<Color>(s_backColorProperty);
6899
if (Equals(Properties.
GetValueOrDefault
<object>(s_dataContextProperty), Parent?.DataContext))
6996
Color foreColor = Properties.
GetValueOrDefault
<Color>(s_foreColorProperty);
10433
Color backColor = Properties.
GetValueOrDefault
<Color>(s_backColorProperty);
10453
internal virtual bool ShouldSerializeForeColor() => !Properties.
GetValueOrDefault
<Color>(s_foreColorProperty).IsEmpty;
System\Windows\Forms\Control.Ime.cs (3)
110
int val = Properties.
GetValueOrDefault
<int>(s_disableImeModeChangedCountProperty);
231
get => Properties.
GetValueOrDefault
<int>(s_imeWmCharsToIgnoreProperty);
250
get => Properties.
GetValueOrDefault
(s_lastCanEnableImeProperty, true);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (6)
410
get => Properties.
GetValueOrDefault
(s_propDrawMode, DrawMode.Normal);
436
if (Properties.
GetValueOrDefault
<int>(s_propDropDownWidth) != value)
462
if (Properties.
GetValueOrDefault
<int>(s_propDropDownHeight) != value)
599
if (Properties.
GetValueOrDefault
<int>(s_propItemHeight) != value)
684
return Properties.
GetValueOrDefault
<int>(s_propMaxLength);
1043
get => Properties.
GetValueOrDefault
(s_propStyle, ComboBoxStyle.DropDown);
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (4)
58
get => Properties.
GetValueOrDefault
<ContextMenuStrip>(s_propContextMenuStrip);
173
get => Properties.
GetValueOrDefault
<int>(s_propDividerThickness);
262
DataGridViewHeaderCell? priorValue = Properties.
GetValueOrDefault
<DataGridViewHeaderCell?>(s_propHeaderCell);
602
get => Properties.
GetValueOrDefault
<object?>(s_propUserData);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (3)
40
get => Properties.
GetValueOrDefault
(s_propButtonCellState, ButtonState.Normal);
60
get => Properties.
GetValueOrDefault
(s_propButtonCellFlatStyle, FlatStyle.Standard);
91
get => Properties.
GetValueOrDefault
<bool>(s_propButtonCellUseColumnTextForButtonValue);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (5)
116
get => Properties.
GetValueOrDefault
<ContextMenuStrip>(s_propCellContextMenuStrip);
658
get => Properties.
GetValueOrDefault
<object?>(s_propCellTag);
1542
string? objErrorText = Properties.
GetValueOrDefault
<string>(s_propCellErrorText);
2432
return Properties.
GetValueOrDefault
<object>(s_propCellValue);
2443
return Properties.
GetValueOrDefault
<object>(s_propCellValue);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (9)
69
get => Properties.
GetValueOrDefault
(s_propAlignment, DataGridViewContentAlignment.NotSet);
109
get => Properties.
GetValueOrDefault
<Color>(s_propBackColor);
145
get => Properties.
GetValueOrDefault
<Font>(s_propFont);
193
get => Properties.
GetValueOrDefault
<IFormatProvider>(s_propFormatProvider) ?? Globalization.CultureInfo.CurrentCulture;
263
get => Properties.
GetValueOrDefault
<Padding>(s_propPadding);
309
get => Properties.
GetValueOrDefault
<Color>(s_propSelectionBackColor);
323
get => Properties.
GetValueOrDefault
<Color>(s_propSelectionForeColor);
338
get => Properties.
GetValueOrDefault
<object?>(s_propTag);
346
get => Properties.
GetValueOrDefault
(s_propWrapMode, DataGridViewTriState.NotSet);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (5)
182
get => Properties.
GetValueOrDefault
(s_propButtonCellState, ButtonState.Normal);
209
get => Properties.
GetValueOrDefault
<object?>(s_propFalseValue);
235
get => Properties.
GetValueOrDefault
(s_propFlatStyle, FlatStyle.Standard);
264
get => Properties.
GetValueOrDefault
<object?>(s_propIndeterminateValue);
362
get => Properties.
GetValueOrDefault
<object?>(s_propTrueValue);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
789
get => Properties.
GetValueOrDefault
<Type>(s_propDataGridViewColumnValueType);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (11)
132
get => Properties.
GetValueOrDefault
<object>(s_propComboBoxCellDataSource);
226
get => Properties.
GetValueOrDefault
<PropertyDescriptor?>(s_propComboBoxCellDisplayMemberProp);
233
get => Properties.
GetValueOrDefault
(s_propComboBoxCellDisplayStyle, DataGridViewComboBoxDisplayStyle.DropDownButton);
269
get => Properties.
GetValueOrDefault
<bool>(s_propComboBoxCellDisplayStyleForCurrentCellOnly);
318
get => Properties.
GetValueOrDefault
(s_propComboBoxCellDropDownWidth, 1);
336
get => Properties.
GetValueOrDefault
<DataGridViewComboBoxEditingControl?>(s_propComboBoxCellEditingComboBox);
346
get => Properties.
GetValueOrDefault
(s_propComboBoxCellFlatStyle, FlatStyle.Standard);
378
get => Properties.
GetValueOrDefault
(s_propComboBoxCellMaxDropDownItems, DefaultMaxDropDownItems);
447
get => Properties.
GetValueOrDefault
<DataGridViewComboBoxColumn>(s_propComboBoxCellColumnTemplate);
482
get => Properties.
GetValueOrDefault
<PropertyDescriptor?>(s_propComboBoxCellValueMemberProp);
792
CurrencyManager? cm = Properties.
GetValueOrDefault
<CurrencyManager?>(s_propComboBoxCellDataManager);
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (4)
31
get => Properties.
GetValueOrDefault
(s_propButtonState, ButtonState.Normal);
80
get => Properties.
GetValueOrDefault
<Bitmap?>(s_propFlipXPThemesBitmap);
157
get => Properties.
GetValueOrDefault
<Type?>(s_propValueType, s_defaultValueType);
425
return Properties.
GetValueOrDefault
<object>(s_propCellValue);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
98
get => Properties.
GetValueOrDefault
(s_propImageCellLayout, DataGridViewImageCellLayout.Normal);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (4)
117
get => Properties.
GetValueOrDefault
(s_propLinkCellLinkBehavior, LinkBehavior.SystemDefault);
206
get => Properties.
GetValueOrDefault
(s_propLinkCellLinkState, LinkState.Normal);
241
get => Properties.
GetValueOrDefault
(s_propLinkCellTrackVisitedState, true);
272
get => Properties.
GetValueOrDefault
<bool>(s_propLinkCellUseColumnTextForLinkValue);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
570
return Properties.
GetValueOrDefault
<object?>(s_propCellValue);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (2)
51
get => Properties.
GetValueOrDefault
<DataGridViewTextBoxEditingControl?>(s_propTextBoxCellEditingTextBox);
67
get => Properties.
GetValueOrDefault
(s_propTextBoxCellMaxInputLength, MaxInputLengthDefault);
System\Windows\Forms\Controls\Labels\Label.cs (4)
372
Image? image = Properties.
GetValueOrDefault
<Image>(s_propImage);
507
get => Properties.
GetValueOrDefault
<ImageList>(s_propImageList);
552
get => Properties.
GetValueOrDefault
(s_propImageAlign, ContentAlignment.MiddleCenter);
696
get => Properties.
GetValueOrDefault
(s_propTextAlign, ContentAlignment.TopLeft);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1696
ToolStripTextDirection textDirection = Properties.
GetValueOrDefault
(s_propTextDirection, ToolStripTextDirection.Horizontal);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
568
get => Properties.
GetValueOrDefault
(s_propOpacity, 1.0d);
753
get => Properties.
GetValueOrDefault
<Control>(s_propSourceControl);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (22)
214
get => Properties.
GetValueOrDefault
<string>(s_accessibleDefaultActionDescriptionProperty);
231
get => Properties.
GetValueOrDefault
<string>(s_accessibleDescriptionProperty);
248
get => Properties.
GetValueOrDefault
<string>(s_accessibleNameProperty);
264
get => Properties.
GetValueOrDefault
(s_accessibleRoleProperty, AccessibleRole.Default);
390
get => Properties.
GetValueOrDefault
<Image>(s_backgroundImageProperty);
489
get => Properties.
GetValueOrDefault
(s_backgroundImageLayoutProperty, ImageLayout.Tile);
863
Color foreColor = Properties.
GetValueOrDefault
<Color>(s_foreColorProperty);
1025
Image? image = Properties.
GetValueOrDefault
<Image>(s_imageProperty);
1196
Color color = Properties.
GetValueOrDefault
<Color>(s_foreColorProperty);
1284
get => Properties.
GetValueOrDefault
(s_mergeActionProperty, MergeAction.Append);
1300
get => Properties.
GetValueOrDefault
(s_mergeIndexProperty, -1);
1386
get => WindowsFormsUtils.GetComponentName(this, Properties.
GetValueOrDefault
<string>(s_nameProperty));
1556
Image? image = Properties.
GetValueOrDefault
<Image>(s_imageProperty);
1617
internal Color RawBackColor => Properties.
GetValueOrDefault
<Color>(s_backColorProperty, Color.Empty);
1733
return Properties.
GetValueOrDefault
<Image>(s_mirroredImageProperty);
1853
get => Properties.
GetValueOrDefault
<object>(s_tagProperty);
1912
ToolStripTextDirection textDirection = Properties.
GetValueOrDefault
(s_textDirectionProperty, ToolStripTextDirection.Inherit);
2889
Color backColor = Properties.
GetValueOrDefault
<Color>(s_backColorProperty);
2937
Color foreColor = Properties.
GetValueOrDefault
<Color>(s_foreColorProperty);
2978
ToolStripTextDirection textDirection = Properties.
GetValueOrDefault
(s_textDirectionProperty, ToolStripTextDirection.Inherit);
3294
Color backColor = Properties.
GetValueOrDefault
<Color>(s_backColorProperty);
3308
Color foreColor = Properties.
GetValueOrDefault
<Color>(s_foreColorProperty);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
302
get => Properties.
GetValueOrDefault
(s_propCheckState, CheckState.Unchecked);
359
get => Properties.
GetValueOrDefault
(s_propShortcutKeys, Keys.None);
480
internal Form? MdiForm => Properties.
GetValueOrDefault
<Form>(s_propMdiForm);
System\Windows\Forms\Form.cs (22)
222
get => Properties.
GetValueOrDefault
<IButtonControl?>(s_propAcceptButton);
337
get => Properties.
GetValueOrDefault
<Form>(s_propActiveMdiChild);
345
get => Properties.
GetValueOrDefault
<Form>(s_propFormerlyActiveMdiChild);
714
get => Properties.
GetValueOrDefault
<IButtonControl>(s_propCancelButton);
804
Form? formMdiParent = Properties.
GetValueOrDefault
<Form>(s_propFormMdiParent);
1080
get => Properties.
GetValueOrDefault
<bool>(s_propMdiChildFocusable);
1162
get => Properties.
GetValueOrDefault
<Rectangle>(s_propMaximizedBounds);
1264
get => Properties.
GetValueOrDefault
<MenuStrip>(s_propMainMenuStrip);
1456
get => Properties.
GetValueOrDefault
<Form>(s_propFormMdiParent);
1459
Form? formMdiParent = Properties.
GetValueOrDefault
<Form>(s_propFormMdiParent);
1528
get => Properties.
GetValueOrDefault
<MdiWindowListStrip>(s_propMdiWindowListStrip);
1534
get => Properties.
GetValueOrDefault
<MdiControlStrip>(s_propMdiControlStrip);
1573
get => Properties.
GetValueOrDefault
(s_propOpacity, 1.0d);
1660
internal Form? OwnerInternal => Properties.
GetValueOrDefault
<Form?>(s_propOwner);
2006
get => Properties.
GetValueOrDefault
(s_propTransparencyKey, Color.Empty);
2189
get => Properties.
GetValueOrDefault
(s_propFormCornerPreference, FormCornerPreference.Default);
2281
get => Properties.
GetValueOrDefault
(s_propFormBorderColor, Color.Empty);
2343
get => Properties.
GetValueOrDefault
(s_propFormCaptionBackColor, Color.Empty);
2406
get => Properties.
GetValueOrDefault
(s_propFormCaptionTextColor, Color.Empty);
3285
Form? form = Properties.
GetValueOrDefault
<Form>(s_propFormMdiParent);
3658
IWin32Window? dialogOwner = Properties.
GetValueOrDefault
<IWin32Window>(s_propDialogOwner);
5268
IButtonControl? existing = Properties.
GetValueOrDefault
<IButtonControl>(s_propDefaultButton);
System\Windows\Forms\Layout\CommonProperties.cs (1)
728
element.Properties.
GetValueOrDefault
<BitVector32>(s_layoutStateProperty);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
578
private void AxContainerFormCreated() => Properties.
GetValueOrDefault
<AxHost.AxContainer>(s_propAxContainer)?.FormCreated();
System\Windows\Forms\Layout\DefaultLayout.cs (1)
1086
element.Properties.
GetValueOrDefault
<AnchorInfo>(s_layoutInfoProperty);
System\Windows\Forms\Layout\FlowLayout.cs (1)
292
container.Properties.
GetValueOrDefault
<FlowDirection>(s_flowDirectionProperty);