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
- MarkupCompiler.cs
- CfgParser.cs
- RootBrowserWindowAutomationPeer.cs
- DataGridCell.cs
- RawAppCommandInputReport.cs
- SqlInfoMessageEvent.cs
- AppSettingsSection.cs
- ColorAnimationBase.cs
- NameTable.cs
- XDeferredAxisSource.cs
- CollectionViewGroupInternal.cs
- SplitContainer.cs
- ListBoxChrome.cs
- HtmlEmptyTagControlBuilder.cs
- RuntimeConfig.cs
- PerformanceCountersElement.cs
- SatelliteContractVersionAttribute.cs
- DataServiceResponse.cs
- HttpInputStream.cs
- DescendentsWalkerBase.cs
- LinearQuaternionKeyFrame.cs
- GeometryDrawing.cs
- FormViewModeEventArgs.cs
- AuthenticationModuleElementCollection.cs
- NavigationWindowAutomationPeer.cs
- DataGridItemAutomationPeer.cs
- EntityCollection.cs
- RawStylusInput.cs
- PropertyValueUIItem.cs
- HtmlInputButton.cs
- CompositionTarget.cs
- WebPartConnectionsConfigureVerb.cs
- ExecutedRoutedEventArgs.cs
- TabletDevice.cs
- VerticalAlignConverter.cs
- AddressUtility.cs
- X509ChainElement.cs
- GridViewPageEventArgs.cs
- InvokeHandlers.cs
- IntSecurity.cs
- DesignerInterfaces.cs
- LocatorPart.cs
- FormViewInsertedEventArgs.cs
- XmlSchemaSubstitutionGroup.cs
- RtfToXamlLexer.cs
- SqlNodeAnnotation.cs
- StreamUpdate.cs
- EntityContainerAssociationSetEnd.cs
- ContentElement.cs
- RoutedEventConverter.cs
- WindowsRebar.cs
- Popup.cs
- OuterGlowBitmapEffect.cs
- UMPAttributes.cs
- ObjectSecurityT.cs
- Object.cs
- BooleanFunctions.cs
- OleDbConnection.cs
- GeometryHitTestResult.cs
- SiteOfOriginPart.cs
- XPathException.cs
- Point3DAnimation.cs
- DefaultPropertyAttribute.cs
- listitem.cs
- AutomationElementCollection.cs
- DataViewSetting.cs
- SkinBuilder.cs
- ToolboxItemFilterAttribute.cs
- DetailsViewInsertEventArgs.cs
- ButtonBaseAutomationPeer.cs
- ParameterCollection.cs
- StateDesigner.LayoutSelectionGlyph.cs
- ListMarkerLine.cs
- SubstitutionList.cs
- DecimalFormatter.cs
- DocumentSchemaValidator.cs
- SchemaCreator.cs
- FileDialogCustomPlaces.cs
- InstanceCompleteException.cs
- TreeViewAutomationPeer.cs
- XmlCharType.cs
- AuditLog.cs
- DataBoundControlHelper.cs
- DefaultMemberAttribute.cs
- IpcClientManager.cs
- XmlSignatureManifest.cs
- QilValidationVisitor.cs
- AppDomainUnloadedException.cs
- MobilePage.cs
- UIElement.cs
- AnnotationResourceChangedEventArgs.cs
- SoapFault.cs
- MDIControlStrip.cs
- SafeHandle.cs
- XPathMessageFilterElement.cs
- RelationshipConstraintValidator.cs
- _SslSessionsCache.cs
- ExceptionUtil.cs
- FieldToken.cs
- RequiredFieldValidator.cs