162 references to Properties
System.Windows.Forms (162)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (8)
54int buttonState = this.Properties.GetInteger(PropButtonCellState, out found); 68this.Properties.SetInteger(PropButtonCellState, (int)value); 92int flatStyle = this.Properties.GetInteger(PropButtonCellFlatStyle, out found); 108this.Properties.SetInteger(PropButtonCellFlatStyle, (int)value); 121this.Properties.SetInteger(PropButtonCellFlatStyle, (int)value); 143int useColumnTextForButtonValue = this.Properties.GetInteger(PropButtonCellUseColumnTextForButtonValue, out found); 154this.Properties.SetInteger(PropButtonCellUseColumnTextForButtonValue, value ? 1 : 0); 166this.Properties.SetInteger(PropButtonCellUseColumnTextForButtonValue, value ? 1 : 0);
winforms\Managed\System\WinForms\DataGridViewCell.cs (38)
109AccessibleObject result = (AccessibleObject) this.Properties.GetObject(PropCellAccessibilityObject); 113this.Properties.SetObject(PropCellAccessibilityObject, result); 168return (ContextMenuStrip)this.Properties.GetObject(PropCellContextMenuStrip); 172ContextMenuStrip oldValue = (ContextMenuStrip)this.Properties.GetObject(PropCellContextMenuStrip); 180this.Properties.SetObject(PropCellContextMenuStrip, value); 322object errorText = this.Properties.GetObject(PropCellErrorText); 328if (!string.IsNullOrEmpty(value) || this.Properties.ContainsObject(PropCellErrorText)) 330this.Properties.SetObject(PropCellErrorText, value); 416return this.Properties.ContainsObject(PropCellErrorText) && this.Properties.GetObject(PropCellErrorText) != null; 428return this.Properties.ContainsObject(PropCellStyle) && this.Properties.GetObject(PropCellStyle) != null; 436return this.Properties.ContainsObject(PropCellToolTipText) && this.Properties.GetObject(PropCellToolTipText) != null; 444return this.Properties.ContainsObject(PropCellValue) && this.Properties.GetObject(PropCellValue) != null; 452return this.Properties.ContainsObject(PropCellValueType) && this.Properties.GetObject(PropCellValueType) != null; 802DataGridViewCellStyle dgvcs = (DataGridViewCellStyle)this.Properties.GetObject(PropCellStyle); 807this.Properties.SetObject(PropCellStyle, dgvcs); 819if (value != null || this.Properties.ContainsObject(PropCellStyle)) 825this.Properties.SetObject(PropCellStyle, value); 849return this.Properties.GetObject(PropCellTag); 853if (value != null || this.Properties.ContainsObject(PropCellTag)) 855this.Properties.SetObject(PropCellTag, value); 881object toolTipText = this.Properties.GetObject(PropCellToolTipText); 887if (!String.IsNullOrEmpty(value) || this.Properties.ContainsObject(PropCellToolTipText)) 889this.Properties.SetObject(PropCellToolTipText, value); 924Type cellValueType = (Type) this.Properties.GetObject(PropCellValueType); 934if (value != null || this.Properties.ContainsObject(PropCellValueType)) 936this.Properties.SetObject(PropCellValueType, value); 1847object objErrorText = this.Properties.GetObject(PropCellErrorText); 2686return this.Properties.GetObject(PropCellValue); 2697return this.Properties.GetObject(PropCellValue); 4628if (value != null || this.Properties.ContainsObject(PropCellValue)) 4630this.Properties.SetObject(PropCellValue, value); 4669if (value != null || this.Properties.ContainsObject(PropCellValue)) 4671this.Properties.SetObject(PropCellValue, value);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (20)
205int buttonState = this.Properties.GetInteger(PropButtonCellState, out found); 219this.Properties.SetInteger(PropButtonCellState, (int)value); 241return this.Properties.GetObject(PropFalseValue); 245if (value != null || this.Properties.ContainsObject(PropFalseValue)) 247this.Properties.SetObject(PropFalseValue, value); 267if (value != null || this.Properties.ContainsObject(PropFalseValue)) 269this.Properties.SetObject(PropFalseValue, value); 281int flatStyle = this.Properties.GetInteger(PropFlatStyle, out found); 297this.Properties.SetInteger(PropFlatStyle, (int)value); 310this.Properties.SetInteger(PropFlatStyle, (int)value); 337return this.Properties.GetObject(PropIndeterminateValue); 341if (value != null || this.Properties.ContainsObject(PropIndeterminateValue)) 343this.Properties.SetObject(PropIndeterminateValue, value); 363if (value != null || this.Properties.ContainsObject(PropIndeterminateValue)) 365this.Properties.SetObject(PropIndeterminateValue, value); 422return this.Properties.GetObject(PropTrueValue); 426if (value != null || this.Properties.ContainsObject(PropTrueValue)) 428this.Properties.SetObject(PropTrueValue, value); 448if (value != null || this.Properties.ContainsObject(PropTrueValue)) 450this.Properties.SetObject(PropTrueValue, value);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (3)
67return this.Properties.ContainsObject(PropCellValue); 722return this.Properties.GetObject(PropCellValue); 1208this.Properties.SetObject(PropCellValue, value);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (39)
162if (value != null || this.Properties.ContainsObject(PropComboBoxCellDataManager)) 164this.Properties.SetObject(PropComboBoxCellDataManager, value); 174return this.Properties.GetObject(PropComboBoxCellDataSource); 191this.Properties.SetObject(PropComboBoxCellDataSource, value); 252object displayMember = this.Properties.GetObject(PropComboBoxCellDisplayMember); 283if ((value != null && value.Length > 0) || this.Properties.ContainsObject(PropComboBoxCellDisplayMember)) 285this.Properties.SetObject(PropComboBoxCellDisplayMember, value); 294return (PropertyDescriptor)this.Properties.GetObject(PropComboBoxCellDisplayMemberProp); 298if (value != null || this.Properties.ContainsObject(PropComboBoxCellDisplayMemberProp)) 300this.Properties.SetObject(PropComboBoxCellDisplayMemberProp, value); 312int displayStyle = this.Properties.GetInteger(PropComboBoxCellDisplayStyle, out found); 328this.Properties.SetInteger(PropComboBoxCellDisplayStyle, (int)value); 351this.Properties.SetInteger(PropComboBoxCellDisplayStyle, (int)value); 363int displayStyleForCurrentCellOnly = this.Properties.GetInteger(PropComboBoxCellDisplayStyleForCurrentCellOnly, out found); 374this.Properties.SetInteger(PropComboBoxCellDisplayStyleForCurrentCellOnly, value ? 1 : 0); 396this.Properties.SetInteger(PropComboBoxCellDisplayStyleForCurrentCellOnly, value ? 1 : 0); 442int dropDownWidth = this.Properties.GetInteger(PropComboBoxCellDropDownWidth, out found); 452this.Properties.SetInteger(PropComboBoxCellDropDownWidth, (int)value); 464return (DataGridViewComboBoxEditingControl)this.Properties.GetObject(PropComboBoxCellEditingComboBox); 468if (value != null || this.Properties.ContainsObject(PropComboBoxCellEditingComboBox)) 470this.Properties.SetObject(PropComboBoxCellEditingComboBox, value); 491int flatStyle = this.Properties.GetInteger(PropComboBoxCellFlatStyle, out found); 507this.Properties.SetInteger(PropComboBoxCellFlatStyle, (int)value); 520this.Properties.SetInteger(PropComboBoxCellFlatStyle, (int)value); 538return this.Properties.ContainsObject(PropComboBoxCellItems) && this.Properties.GetObject(PropComboBoxCellItems) != null; 559int maxDropDownItems = this.Properties.GetInteger(PropComboBoxCellMaxDropDownItems, out found); 573this.Properties.SetInteger(PropComboBoxCellMaxDropDownItems, (int)value); 639return (DataGridViewComboBoxColumn) this.Properties.GetObject(PropComboBoxCellColumnTemplate); 643this.Properties.SetObject(PropComboBoxCellColumnTemplate, value); 653object valueMember = this.Properties.GetObject(PropComboBoxCellValueMember); 684if ((value != null && value.Length > 0) || this.Properties.ContainsObject(PropComboBoxCellValueMember)) 686this.Properties.SetObject(PropComboBoxCellValueMember, value); 695return (PropertyDescriptor)this.Properties.GetObject(PropComboBoxCellValueMemberProp); 699if (value != null || this.Properties.ContainsObject(PropComboBoxCellValueMemberProp)) 701this.Properties.SetObject(PropComboBoxCellValueMemberProp, value); 1019CurrencyManager cm = (CurrencyManager)this.Properties.GetObject(PropComboBoxCellDataManager); 1286ObjectCollection items = (ObjectCollection)this.Properties.GetObject(PropComboBoxCellItems); 1290this.Properties.SetObject(PropComboBoxCellItems, items);
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (11)
46int buttonState = this.Properties.GetInteger(PropButtonState, out found); 65this.Properties.SetInteger(PropButtonState, (int) value); 114return (Bitmap)this.Properties.GetObject(PropFlipXPThemesBitmap); 118if (value != null || this.Properties.ContainsObject(PropFlipXPThemesBitmap)) 120this.Properties.SetObject(PropFlipXPThemesBitmap, value); 169return this.Properties.ContainsObject(PropValueType) && this.Properties.GetObject(PropValueType) != null; 238Type valueType = (Type) this.Properties.GetObject(PropValueType); 247if (value != null || this.Properties.ContainsObject(PropValueType)) 249this.Properties.SetObject(PropValueType, value); 525return this.Properties.GetObject(PropCellValue);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (6)
78object description = this.Properties.GetObject(PropImageCellDescription); 88if (!string.IsNullOrEmpty(value) || this.Properties.ContainsObject(PropImageCellDescription)) 90this.Properties.SetObject(PropImageCellDescription, value); 154int imageLayout = this.Properties.GetInteger(PropImageCellLayout, out found); 170this.Properties.SetInteger(PropImageCellLayout, (int)value); 183this.Properties.SetInteger(PropImageCellLayout, (int)value);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (29)
63if (this.Properties.ContainsObject(PropLinkCellActiveLinkColor)) 65return (Color)this.Properties.GetObject(PropLinkCellActiveLinkColor); 81this.Properties.SetObject(PropLinkCellActiveLinkColor, value); 103this.Properties.SetObject(PropLinkCellActiveLinkColor, value); 144int linkBehavior = this.Properties.GetInteger(PropLinkCellLinkBehavior, out found); 160this.Properties.SetInteger(PropLinkCellLinkBehavior, (int)value); 183this.Properties.SetInteger(PropLinkCellLinkBehavior, (int)value); 196if (this.Properties.ContainsObject(PropLinkCellLinkColor)) 198return (Color)this.Properties.GetObject(PropLinkCellLinkColor); 214this.Properties.SetObject(PropLinkCellLinkColor, value); 236this.Properties.SetObject(PropLinkCellLinkColor, value); 256int linkState = this.Properties.GetInteger(PropLinkCellLinkState, out found); 267this.Properties.SetInteger(PropLinkCellLinkState, (int) value); 318int trackVisitedState = this.Properties.GetInteger(PropLinkCellTrackVisitedState, out found); 329this.Properties.SetInteger(PropLinkCellTrackVisitedState, value ? 1 : 0); 351this.Properties.SetInteger(PropLinkCellTrackVisitedState, value ? 1 : 0); 363int useColumnTextForLinkValue = this.Properties.GetInteger(PropLinkCellUseColumnTextForLinkValue, out found); 374this.Properties.SetInteger(PropLinkCellUseColumnTextForLinkValue, value ? 1 : 0); 387this.Properties.SetInteger(PropLinkCellUseColumnTextForLinkValue, value ? 1 : 0); 400if (this.Properties.ContainsObject(PropLinkCellVisitedLinkColor)) 402return (Color)this.Properties.GetObject(PropLinkCellVisitedLinkColor); 418this.Properties.SetObject(PropLinkCellVisitedLinkColor, value); 440this.Properties.SetObject(PropLinkCellVisitedLinkColor, value); 498if (this.Properties.ContainsObject(PropLinkCellActiveLinkColor)) 503if (this.Properties.ContainsInteger(PropLinkCellUseColumnTextForLinkValue)) 508if (this.Properties.ContainsInteger(PropLinkCellLinkBehavior)) 513if (this.Properties.ContainsObject(PropLinkCellLinkColor)) 518if (this.Properties.ContainsInteger(PropLinkCellTrackVisitedState)) 523if (this.Properties.ContainsObject(PropLinkCellVisitedLinkColor))
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (3)
706return this.Properties.GetObject(PropCellValue); 1151if (value != null || this.Properties.ContainsObject(PropCellValue)) 1153this.Properties.SetObject(PropCellValue, value);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (5)
73return (DataGridViewTextBoxEditingControl) this.Properties.GetObject(PropTextBoxCellEditingTextBox); 77if (value != null || this.Properties.ContainsObject(PropTextBoxCellEditingTextBox)) 79this.Properties.SetObject(PropTextBoxCellEditingTextBox, value); 101int maxInputLength = this.Properties.GetInteger(PropTextBoxCellMaxInputLength, out found); 119this.Properties.SetInteger(PropTextBoxCellMaxInputLength, value);