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
- SafeRightsManagementQueryHandle.cs
- RequiredAttributeAttribute.cs
- MetadataFile.cs
- XsdBuilder.cs
- XmlSerializerAssemblyAttribute.cs
- DataGridViewBand.cs
- Int16Storage.cs
- AliasedSlot.cs
- DateTimeConverter.cs
- AppDomainUnloadedException.cs
- ObjectStorage.cs
- SkewTransform.cs
- ReflectTypeDescriptionProvider.cs
- WindowsTab.cs
- KeyValueConfigurationElement.cs
- RenderContext.cs
- TcpProcessProtocolHandler.cs
- Table.cs
- TextDecorationCollection.cs
- ExtentCqlBlock.cs
- ReferencedAssembly.cs
- ListViewItemSelectionChangedEvent.cs
- Thumb.cs
- ValidateNames.cs
- HttpMethodConstraint.cs
- AppSettingsExpressionBuilder.cs
- FieldNameLookup.cs
- MemberDescriptor.cs
- QilInvokeEarlyBound.cs
- PasswordRecoveryAutoFormat.cs
- GridViewRowCollection.cs
- Span.cs
- CultureTableRecord.cs
- SimpleParser.cs
- ChildChangedEventArgs.cs
- ResourceManager.cs
- assertwrapper.cs
- ControlType.cs
- FileAuthorizationModule.cs
- EmptyControlCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- XmlSchemaType.cs
- HMACSHA512.cs
- PrimitiveXmlSerializers.cs
- exports.cs
- DbProviderSpecificTypePropertyAttribute.cs
- LeafCellTreeNode.cs
- ProviderConnectionPoint.cs
- OleDbException.cs
- IIS7UserPrincipal.cs
- NavigationCommands.cs
- FontStyles.cs
- AppDomainProtocolHandler.cs
- RtfFormatStack.cs
- BrushMappingModeValidation.cs
- Propagator.ExtentPlaceholderCreator.cs
- ScriptResourceAttribute.cs
- WindowsEditBoxRange.cs
- ImageCreator.cs
- URLBuilder.cs
- DataRowComparer.cs
- ProtocolsSection.cs
- RoutedEventHandlerInfo.cs
- TextLineResult.cs
- KnownBoxes.cs
- SwitchAttribute.cs
- SqlDependencyListener.cs
- ProfilePropertySettingsCollection.cs
- GroupBox.cs
- IndexedSelectQueryOperator.cs
- BitmapEffectState.cs
- BinaryMessageFormatter.cs
- FormatException.cs
- RealizationContext.cs
- AssemblyBuilder.cs
- ByteStorage.cs
- ConfigurationErrorsException.cs
- XmlCodeExporter.cs
- Equal.cs
- _LocalDataStoreMgr.cs
- UnmanagedMarshal.cs
- PromptStyle.cs
- QilInvokeLateBound.cs
- CheckBoxField.cs
- BaseConfigurationRecord.cs
- SpeechRecognitionEngine.cs
- File.cs
- SQLDoubleStorage.cs
- Stopwatch.cs
- PasswordPropertyTextAttribute.cs
- WsatConfiguration.cs
- TemplateFactory.cs
- QueryStringParameter.cs
- HandlerBase.cs
- Model3DGroup.cs
- ImageSourceValueSerializer.cs
- XmlSchemaAttribute.cs
- activationcontext.cs
- SqlDataRecord.cs
- XmlLangPropertyAttribute.cs