163 references to GetValueOrDefault
System.Windows.Forms (163)
System\Windows\Forms\Control.cs (39)
461
return Properties.
GetValueOrDefault
(
482
return Properties.
GetValueOrDefault
(
582
get => Properties.
GetValueOrDefault
<string>(s_accessibleDefaultActionProperty);
595
get => Properties.
GetValueOrDefault
<string>(s_accessibleDescriptionProperty);
608
get => Properties.
GetValueOrDefault
<string>(s_accessibleNameProperty);
620
get => Properties.
GetValueOrDefault
(s_accessibleRoleProperty, AccessibleRole.Default);
758
get => Properties.
GetValueOrDefault
(s_autoScrollOffsetProperty, Point.Empty);
883
get => Properties.
GetValueOrDefault
(
1114
get => Properties.
GetValueOrDefault
<Image>(s_backgroundImageProperty);
1144
get => Properties.
GetValueOrDefault
(s_backgroundImageLayoutProperty, ImageLayout.Tile);
1204
Properties.
GetValueOrDefault
<ControlBindingsCollection>(s_bindingsProperty)?.Clear();
1385
int cacheTextCounter = Properties.
GetValueOrDefault
<int>(s_cacheTextCountProperty);
1398
int cacheTextCounter = Properties.
GetValueOrDefault
<int>(s_cacheTextCountProperty);
1415
_text = Properties.
GetValueOrDefault
<string?>(s_cacheTextFieldProperty);
1505
get => Properties.
GetValueOrDefault
<ContextMenuStrip>(s_contextMenuStripProperty);
1748
Cursor? localCursor = Properties.
GetValueOrDefault
<Cursor>(s_cursorProperty);
2079
Font? previous = Properties.
GetValueOrDefault
<Font>(s_fontProperty);
2207
fontHandle = Properties.
GetValueOrDefault
<FontHandleWrapper?>(s_fontHandleWrapperProperty);
2862
string? name = Properties.
GetValueOrDefault
<string>(s_namePropertyProperty);
2932
internal Color RawBackColor => Properties.
GetValueOrDefault
<Color>(s_backColorProperty);
2982
get => Properties.
GetValueOrDefault
<Region>(s_regionProperty);
3376
get => Properties.
GetValueOrDefault
<object>(s_userDataProperty);
4593
int updateCount = Properties.
GetValueOrDefault
(s_updateCountProperty, 0);
5030
Properties?.
GetValueOrDefault
<ActiveXImpl>(s_activeXImplProperty)?.Dispose();
5288
int updateCount = Properties.
GetValueOrDefault
(s_updateCountProperty, 0);
5576
=> Properties.
GetValueOrDefault
(s_updateCountProperty, 0) > 0;
7169
int changeVersion = Properties.
GetValueOrDefault
(s_visualStylesModeChangeVersionProperty, 0) + 1;
7367
Color backColor = Properties.
GetValueOrDefault
<Color>(s_backColorProperty);
7403
if (Equals(Properties.
GetValueOrDefault
<object>(s_dataContextProperty), Parent?.DataContext))
7451
if (Properties.
GetValueOrDefault
<VisualStylesMode>(s_visualStylesModeProperty)
7530
=> _state.Source.Properties.
GetValueOrDefault
(s_visualStylesModeChangeVersionProperty, 0)
7532
&& Control.Properties.
GetValueOrDefault
(s_visualStylesModeChangeVersionProperty, 0)
7545
control.Properties.
GetValueOrDefault
(s_visualStylesModeChangeVersionProperty, 0),
7722
Color foreColor = Properties.
GetValueOrDefault
<Color>(s_foreColorProperty);
8771
int changeVersion = Properties.
GetValueOrDefault
(s_visualStylesModeChangeVersionProperty, 0) + 1;
8804
|| Properties.
GetValueOrDefault
<bool>(s_systemVisualSettingsRefreshPendingProperty))
8823
SystemVisualSettings? oldSettings = Properties.
GetValueOrDefault
<SystemVisualSettings>(s_systemVisualSettingsProperty);
11303
Color backColor = Properties.
GetValueOrDefault
<Color>(s_backColorProperty);
11323
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\Control.SuspendMutation.cs (4)
60
=> Properties.
GetValueOrDefault
(s_suspendPaintingCountProperty, 0);
67
int suspendPaintingCount = Properties.
GetValueOrDefault
(
81
int suspendPaintingCount = Properties.
GetValueOrDefault
(
119
if (Properties.
GetValueOrDefault
(s_suspendPaintingCountProperty, 0) != 0
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (6)
429
get => Properties.
GetValueOrDefault
(s_propDrawMode, DrawMode.Normal);
458
if (Properties.
GetValueOrDefault
<int>(s_propDropDownWidth) != value)
488
if (Properties.
GetValueOrDefault
<int>(s_propDropDownHeight) != value)
647
if (Properties.
GetValueOrDefault
<int>(s_propItemHeight) != value)
732
return Properties.
GetValueOrDefault
<int>(s_propMaxLength);
1121
get => Properties.
GetValueOrDefault
(s_propStyle, ComboBoxStyle.DropDown);
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (4)
58
get => Properties.
GetValueOrDefault
<ContextMenuStrip>(s_propContextMenuStrip);
165
get => Properties.
GetValueOrDefault
<int>(s_propDividerThickness);
254
DataGridViewHeaderCell? priorValue = Properties.
GetValueOrDefault
<DataGridViewHeaderCell?>(s_propHeaderCell);
588
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);
650
get => Properties.
GetValueOrDefault
<object?>(s_propCellTag);
1531
string? objErrorText = Properties.
GetValueOrDefault
<string>(s_propCellErrorText);
2421
return Properties.
GetValueOrDefault
<object>(s_propCellValue);
2432
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)
791
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)
370
Image? image = Properties.
GetValueOrDefault
<Image>(s_propImage);
505
get => Properties.
GetValueOrDefault
<ImageList>(s_propImageList);
550
get => Properties.
GetValueOrDefault
(s_propImageAlign, ContentAlignment.MiddleCenter);
694
get => Properties.
GetValueOrDefault
(s_propTextAlign, ContentAlignment.TopLeft);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1687
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);
494
get => Properties.
GetValueOrDefault
(s_backgroundImageLayoutProperty, ImageLayout.Tile);
868
Color foreColor = Properties.
GetValueOrDefault
<Color>(s_foreColorProperty);
1030
Image? image = Properties.
GetValueOrDefault
<Image>(s_imageProperty);
1201
Color color = Properties.
GetValueOrDefault
<Color>(s_foreColorProperty);
1289
get => Properties.
GetValueOrDefault
(s_mergeActionProperty, MergeAction.Append);
1305
get => Properties.
GetValueOrDefault
(s_mergeIndexProperty, -1);
1391
get => WindowsFormsUtils.GetComponentName(this, Properties.
GetValueOrDefault
<string>(s_nameProperty));
1561
Image? image = Properties.
GetValueOrDefault
<Image>(s_imageProperty);
1614
internal Color RawBackColor => Properties.
GetValueOrDefault
(s_backColorProperty, Color.Empty);
1730
return Properties.
GetValueOrDefault
<Image>(s_mirroredImageProperty);
1850
get => Properties.
GetValueOrDefault
<object>(s_tagProperty);
1909
ToolStripTextDirection textDirection = Properties.
GetValueOrDefault
(s_textDirectionProperty, ToolStripTextDirection.Inherit);
2888
Color backColor = Properties.
GetValueOrDefault
<Color>(s_backColorProperty);
2936
Color foreColor = Properties.
GetValueOrDefault
<Color>(s_foreColorProperty);
2977
ToolStripTextDirection textDirection = Properties.
GetValueOrDefault
(s_textDirectionProperty, ToolStripTextDirection.Inherit);
3287
Color backColor = Properties.
GetValueOrDefault
<Color>(s_backColorProperty);
3301
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\Controls\TreeView\TreeView.cs (1)
831
get => Properties.
GetValueOrDefault
(s_nodeLeadingProperty, 0.0f);
System\Windows\Forms\Form.cs (23)
221
get => Properties.
GetValueOrDefault
<IButtonControl?>(s_propAcceptButton);
336
get => Properties.
GetValueOrDefault
<Form>(s_propActiveMdiChild);
344
get => Properties.
GetValueOrDefault
<Form>(s_propFormerlyActiveMdiChild);
713
get => Properties.
GetValueOrDefault
<IButtonControl>(s_propCancelButton);
803
Form? formMdiParent = Properties.
GetValueOrDefault
<Form>(s_propFormMdiParent);
1076
get => Properties.
GetValueOrDefault
<bool>(s_propMdiChildFocusable);
1158
get => Properties.
GetValueOrDefault
<Rectangle>(s_propMaximizedBounds);
1260
get => Properties.
GetValueOrDefault
<MenuStrip>(s_propMainMenuStrip);
1452
get => Properties.
GetValueOrDefault
<Form>(s_propFormMdiParent);
1455
Form? formMdiParent = Properties.
GetValueOrDefault
<Form>(s_propFormMdiParent);
1524
get => Properties.
GetValueOrDefault
<MdiWindowListStrip>(s_propMdiWindowListStrip);
1530
get => Properties.
GetValueOrDefault
<MdiControlStrip>(s_propMdiControlStrip);
1569
get => Properties.
GetValueOrDefault
(s_propOpacity, 1.0d);
1656
internal Form? OwnerInternal => Properties.
GetValueOrDefault
<Form?>(s_propOwner);
1761
get => Properties.
GetValueOrDefault
(s_propFormScreenCaptureMode, ScreenCaptureMode.Allow);
2086
get => Properties.
GetValueOrDefault
(s_propTransparencyKey, Color.Empty);
2268
get => Properties.
GetValueOrDefault
(s_propFormCornerPreference, FormCornerPreference.Default);
2356
get => Properties.
GetValueOrDefault
(s_propFormBorderColor, Color.Empty);
2416
get => Properties.
GetValueOrDefault
(s_propFormCaptionBackColor, Color.Empty);
2477
get => Properties.
GetValueOrDefault
(s_propFormCaptionTextColor, Color.Empty);
3348
Form? form = Properties.
GetValueOrDefault
<Form>(s_propFormMdiParent);
3712
IWin32Window? dialogOwner = Properties.
GetValueOrDefault
<IWin32Window>(s_propDialogOwner);
5355
IButtonControl? existing = Properties.
GetValueOrDefault
<IButtonControl>(s_propDefaultButton);
System\Windows\Forms\Form.RevealMode.cs (1)
103
get => Properties.
GetValueOrDefault
(s_propFormAppearanceCloaked, false);
System\Windows\Forms\Layout\CommonProperties.cs (1)
723
element.Properties.
GetValueOrDefault
<BitVector32>(s_layoutStateProperty);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
571
private void AxContainerFormCreated() => Properties.
GetValueOrDefault
<AxHost.AxContainer>(s_propAxContainer)?.FormCreated();
System\Windows\Forms\Layout\DefaultLayout.cs (1)
1093
element.Properties.
GetValueOrDefault
<AnchorInfo>(s_layoutInfoProperty);
System\Windows\Forms\Layout\FlowLayout.cs (1)
293
container.Properties.
GetValueOrDefault
<FlowDirection>(s_flowDirectionProperty);