Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / WindowsFormsDesignerOptionService.cs / 1 / WindowsFormsDesignerOptionService.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms.Design { using System; using System.ComponentModel.Design; using System.Collections; using System.ComponentModel; using System.Diagnostics; using System.Globalization; ////// Makes the DesignerOptions queryable through the IDesignerOption service. /// public class WindowsFormsDesignerOptionService : DesignerOptionService { private DesignerOptions _options; public WindowsFormsDesignerOptionService() { } public virtual DesignerOptions CompatibilityOptions { get { if (_options == null) { _options = new DesignerOptions(); } return _options; } } ////// This method is called on demand the first time a user asks for child /// options or properties of an options collection. /// protected override void PopulateOptionCollection(DesignerOptionCollection options) { if (options.Parent == null) { DesignerOptions designerOptions = CompatibilityOptions; if (designerOptions != null) { CreateOptionCollection(options, "DesignerOptions", designerOptions); } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NotifyParentPropertyAttribute.cs
- AnchoredBlock.cs
- ErrorFormatterPage.cs
- XmlWriter.cs
- Adorner.cs
- Bitmap.cs
- XPathExpr.cs
- PopupControlService.cs
- ToolStripGrip.cs
- HttpCapabilitiesBase.cs
- DataGridViewRowConverter.cs
- ResourceManager.cs
- ColorTransformHelper.cs
- AddingNewEventArgs.cs
- AnimationTimeline.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- ColumnClickEvent.cs
- BrowserCapabilitiesCodeGenerator.cs
- UserControl.cs
- EdmMember.cs
- UdpMessageProperty.cs
- oledbmetadatacollectionnames.cs
- BamlRecordHelper.cs
- PathParser.cs
- EnumMemberAttribute.cs
- LayoutEditorPart.cs
- GlyphsSerializer.cs
- AmbientProperties.cs
- System.Data_BID.cs
- HwndStylusInputProvider.cs
- TagPrefixInfo.cs
- XmlTextReader.cs
- ExpressionBinding.cs
- QuaternionValueSerializer.cs
- CultureMapper.cs
- FormatterServices.cs
- CompilationLock.cs
- DataFormats.cs
- WebPartMovingEventArgs.cs
- XPathSingletonIterator.cs
- COM2ExtendedBrowsingHandler.cs
- Point3DAnimation.cs
- SerializationAttributes.cs
- FileLogRecordStream.cs
- PolicyStatement.cs
- SystemWebCachingSectionGroup.cs
- UITypeEditor.cs
- DataControlCommands.cs
- RoutedEventValueSerializer.cs
- TreeNodeCollection.cs
- PrinterResolution.cs
- NonBatchDirectoryCompiler.cs
- NullableLongMinMaxAggregationOperator.cs
- PolicyConversionContext.cs
- ProgressBar.cs
- SelectionRangeConverter.cs
- ClrPerspective.cs
- ParameterDataSourceExpression.cs
- SHA256.cs
- StackSpiller.Generated.cs
- Vector3DConverter.cs
- DataGridToolTip.cs
- TextEditorMouse.cs
- MouseGesture.cs
- DelegatingTypeDescriptionProvider.cs
- DataGridItemEventArgs.cs
- CodeArrayIndexerExpression.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- GroupedContextMenuStrip.cs
- _emptywebproxy.cs
- TdsEnums.cs
- ScrollProviderWrapper.cs
- MachineKeyConverter.cs
- PropertyItemInternal.cs
- HttpHeaderCollection.cs
- RenderingBiasValidation.cs
- ChangeToolStripParentVerb.cs
- TextSpanModifier.cs
- SQLMembershipProvider.cs
- FindRequestContext.cs
- DbInsertCommandTree.cs
- WebBrowserEvent.cs
- DbQueryCommandTree.cs
- RijndaelManagedTransform.cs
- ResourcePermissionBaseEntry.cs
- ConvertEvent.cs
- SafeRightsManagementQueryHandle.cs
- DataGridViewColumnCollection.cs
- HttpVersion.cs
- PriorityQueue.cs
- NgenServicingAttributes.cs
- DetailsViewUpdatedEventArgs.cs
- StickyNoteAnnotations.cs
- IItemContainerGenerator.cs
- AnimationException.cs
- RowUpdatedEventArgs.cs
- XmlIlVisitor.cs
- FrameworkElementFactory.cs
- IsolatedStorageFileStream.cs
- XmlSchemas.cs