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
- InputLangChangeRequestEvent.cs
- EntityParameter.cs
- ProtocolViolationException.cs
- DLinqTableProvider.cs
- FrameworkContentElement.cs
- XmlILCommand.cs
- CriticalHandle.cs
- UserPreferenceChangingEventArgs.cs
- MenuRenderer.cs
- ToolStripSplitStackLayout.cs
- Vector.cs
- TypeDependencyAttribute.cs
- ModifierKeysConverter.cs
- MarshalDirectiveException.cs
- ConnectionManagementElement.cs
- ConfigurationManagerHelper.cs
- CodeThrowExceptionStatement.cs
- PropertyFilterAttribute.cs
- SerialPort.cs
- DispatcherEventArgs.cs
- Viewport3DVisual.cs
- BamlLocalizabilityResolver.cs
- XmlWrappingWriter.cs
- SqlFactory.cs
- PrintPreviewControl.cs
- CompensationHandlingFilter.cs
- DrawingAttributeSerializer.cs
- Message.cs
- KnownTypesProvider.cs
- CallbackValidator.cs
- AddressAlreadyInUseException.cs
- StringFormat.cs
- FloaterBaseParagraph.cs
- WhitespaceSignificantCollectionAttribute.cs
- VisualTreeUtils.cs
- FileLogRecordEnumerator.cs
- WebPartDescriptionCollection.cs
- UnsafeNativeMethods.cs
- ColorMap.cs
- ConnectorSelectionGlyph.cs
- ArgIterator.cs
- DemultiplexingDispatchMessageFormatter.cs
- FilteredReadOnlyMetadataCollection.cs
- Adorner.cs
- PointCollection.cs
- Point3DCollection.cs
- DateTimeHelper.cs
- HtmlInputText.cs
- BindMarkupExtensionSerializer.cs
- ValidationService.cs
- TreeView.cs
- ManagedIStream.cs
- XmlSecureResolver.cs
- CodeObject.cs
- UInt64Storage.cs
- ProtocolsConfigurationHandler.cs
- XmlSchemaCompilationSettings.cs
- DelayedRegex.cs
- PartitionResolver.cs
- DefaultAutoFieldGenerator.cs
- HelpProvider.cs
- sortedlist.cs
- DBNull.cs
- PropertyDescriptorCollection.cs
- X509CertificateCollection.cs
- CompositeScriptReferenceEventArgs.cs
- SqlBulkCopyColumnMapping.cs
- FrameSecurityDescriptor.cs
- DeviceContexts.cs
- GraphicsContainer.cs
- Menu.cs
- TimeoutValidationAttribute.cs
- XmlSignatureProperties.cs
- SafeNativeMethods.cs
- StylusButtonEventArgs.cs
- QuaternionRotation3D.cs
- SessionStateSection.cs
- PeerCollaborationPermission.cs
- Encoding.cs
- Executor.cs
- XmlJsonWriter.cs
- embossbitmapeffect.cs
- CompressedStack.cs
- GuidTagList.cs
- RuntimeConfigLKG.cs
- MasterPageCodeDomTreeGenerator.cs
- ApplicationFileCodeDomTreeGenerator.cs
- UIElement3D.cs
- DatatypeImplementation.cs
- RoleGroupCollection.cs
- XmlAttribute.cs
- LogicalCallContext.cs
- VisualStyleRenderer.cs
- TemplateComponentConnector.cs
- BoundConstants.cs
- TextModifierScope.cs
- XmlSchemaSimpleType.cs
- Application.cs
- DataGridViewImageColumn.cs
- UtilityExtension.cs