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
- AsyncOperationManager.cs
- CompiledIdentityConstraint.cs
- ColumnResult.cs
- TypeConverterAttribute.cs
- HierarchicalDataSourceControl.cs
- SwitchAttribute.cs
- MimeParameterWriter.cs
- ConfigurationStrings.cs
- Line.cs
- MenuItemAutomationPeer.cs
- QueryStatement.cs
- DataGridItem.cs
- DocumentOrderQuery.cs
- XmlnsDictionary.cs
- ChainOfDependencies.cs
- shaperfactory.cs
- ProcessHostServerConfig.cs
- Drawing.cs
- ComplexLine.cs
- IntranetCredentialPolicy.cs
- HostTimeoutsElement.cs
- CompletionBookmark.cs
- UnsafeNativeMethods.cs
- PartitionedDataSource.cs
- ConfigurationManagerHelperFactory.cs
- CharacterString.cs
- DataGridViewCheckBoxCell.cs
- DockAndAnchorLayout.cs
- ToolStripInSituService.cs
- TextElementEnumerator.cs
- assemblycache.cs
- ProcessRequestArgs.cs
- DataGridItemAutomationPeer.cs
- ProfileService.cs
- GZipDecoder.cs
- MultiPropertyDescriptorGridEntry.cs
- DefaultValueAttribute.cs
- ObjectConverter.cs
- DataGridColumnDropSeparator.cs
- StreamGeometryContext.cs
- RawMouseInputReport.cs
- CodeMethodReturnStatement.cs
- HostingEnvironmentWrapper.cs
- CapabilitiesUse.cs
- CreationContext.cs
- WebPartAddingEventArgs.cs
- _LocalDataStore.cs
- WpfKnownTypeInvoker.cs
- WebPartsPersonalization.cs
- ModulesEntry.cs
- AssemblyLoader.cs
- DefaultProxySection.cs
- LinqDataSourceView.cs
- BindingManagerDataErrorEventArgs.cs
- DataSourceControlBuilder.cs
- FormsAuthentication.cs
- SqlStream.cs
- ComponentResourceManager.cs
- HttpServerVarsCollection.cs
- TextBlock.cs
- UrlAuthFailedErrorFormatter.cs
- PageBuildProvider.cs
- DataGridCellsPanel.cs
- ToolStripProgressBar.cs
- SchemaMerger.cs
- Int32.cs
- RadioButtonStandardAdapter.cs
- ByteRangeDownloader.cs
- DataListAutoFormat.cs
- TableRow.cs
- StyleHelper.cs
- GridViewUpdateEventArgs.cs
- GetWinFXPath.cs
- ExpressionConverter.cs
- ControlEvent.cs
- CodeLabeledStatement.cs
- SetterBase.cs
- FontStyles.cs
- ServiceX509SecurityTokenProvider.cs
- InputLangChangeEvent.cs
- AggregationMinMaxHelpers.cs
- ConcurrentQueue.cs
- GridLength.cs
- FileDialogCustomPlacesCollection.cs
- RoamingStoreFileUtility.cs
- ListBoxItemAutomationPeer.cs
- ServerValidateEventArgs.cs
- AttachmentService.cs
- HttpServerVarsCollection.cs
- XmlSignificantWhitespace.cs
- CheckBoxDesigner.cs
- PageRanges.cs
- CircleEase.cs
- EntityDataSourceUtil.cs
- SqlFactory.cs
- WmpBitmapDecoder.cs
- basenumberconverter.cs
- ObjectQuery_EntitySqlExtensions.cs
- HtmlHistory.cs
- TransportContext.cs