Code:
/ DotNET / DotNET / 8.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
- PropertyValidationContext.cs
- DrawTreeNodeEventArgs.cs
- SHA256.cs
- ParameterModifier.cs
- SizeConverter.cs
- AxDesigner.cs
- X509CertificateInitiatorClientCredential.cs
- TableProvider.cs
- InternalSafeNativeMethods.cs
- Icon.cs
- DragSelectionMessageFilter.cs
- DrawingContextDrawingContextWalker.cs
- TreeNodeConverter.cs
- ThicknessKeyFrameCollection.cs
- RefType.cs
- CodeAttributeDeclaration.cs
- FilterQuery.cs
- RichTextBox.cs
- LocalIdCollection.cs
- Logging.cs
- DataGridItemEventArgs.cs
- ClientSession.cs
- HeaderPanel.cs
- StickyNoteContentControl.cs
- CommonDialog.cs
- FrameworkPropertyMetadata.cs
- KeyValuePairs.cs
- FontConverter.cs
- TextElementCollection.cs
- XmlReflectionImporter.cs
- SharedPerformanceCounter.cs
- DocumentGridContextMenu.cs
- ICspAsymmetricAlgorithm.cs
- ProjectionPruner.cs
- Win32.cs
- NotEqual.cs
- DataListItem.cs
- RadioButton.cs
- WebEncodingValidatorAttribute.cs
- _ChunkParse.cs
- DataColumnPropertyDescriptor.cs
- TypeInfo.cs
- FixedSOMLineRanges.cs
- HitTestParameters3D.cs
- BatchWriter.cs
- FontFamilyValueSerializer.cs
- MenuRendererClassic.cs
- WhiteSpaceTrimStringConverter.cs
- DynamicScriptObject.cs
- WriteableOnDemandStream.cs
- Compiler.cs
- XmlCDATASection.cs
- SyndicationDeserializer.cs
- DynamicPropertyHolder.cs
- ButtonPopupAdapter.cs
- ListControl.cs
- AncillaryOps.cs
- MemberHolder.cs
- ContextMenuStrip.cs
- sqlser.cs
- TypeInitializationException.cs
- OracleParameterBinding.cs
- ThrowHelper.cs
- TextViewBase.cs
- HtmlHistory.cs
- CommonXSendMessage.cs
- Dispatcher.cs
- LocalFileSettingsProvider.cs
- DrawingContextWalker.cs
- SqlOuterApplyReducer.cs
- elementinformation.cs
- MatrixStack.cs
- Panel.cs
- SequenceNumber.cs
- PerformanceCounterPermission.cs
- CodeDOMUtility.cs
- Package.cs
- Invariant.cs
- DataGridViewCellStyleConverter.cs
- _LazyAsyncResult.cs
- WebPartUserCapability.cs
- XmlReflectionImporter.cs
- SingleObjectCollection.cs
- TransactionScopeDesigner.cs
- TypeConvertions.cs
- ServiceNameCollection.cs
- WinFormsSpinner.cs
- IssuanceLicense.cs
- XhtmlBasicPageAdapter.cs
- MulticastDelegate.cs
- CryptographicAttribute.cs
- XhtmlStyleClass.cs
- EventHandlersStore.cs
- XmlTextAttribute.cs
- DelegatedStream.cs
- ObjectDataSourceStatusEventArgs.cs
- Socket.cs
- ObjectNotFoundException.cs
- NotFiniteNumberException.cs
- DotExpr.cs