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
- Stylesheet.cs
- DetailsViewActionList.cs
- StrokeNodeOperations2.cs
- HelpInfo.cs
- webbrowsersite.cs
- UnsafeMethods.cs
- DataGridViewComboBoxCell.cs
- DataSourceHelper.cs
- XmlILModule.cs
- GlyphTypeface.cs
- PenContext.cs
- SQLBinary.cs
- WindowsFormsLinkLabel.cs
- GestureRecognitionResult.cs
- GlobalizationSection.cs
- ProviderSettings.cs
- ActivityCodeDomReferenceService.cs
- XmlQualifiedNameTest.cs
- WebExceptionStatus.cs
- Assign.cs
- FileDetails.cs
- SqlTypeSystemProvider.cs
- basecomparevalidator.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- TableLayoutSettings.cs
- CompositeScriptReferenceEventArgs.cs
- RequiredFieldValidator.cs
- CachedFontFace.cs
- RemotingSurrogateSelector.cs
- RunInstallerAttribute.cs
- ValidatedControlConverter.cs
- ChannelSinkStacks.cs
- ValueUnavailableException.cs
- TextSchema.cs
- TemplateGroupCollection.cs
- Types.cs
- securitycriticaldata.cs
- ParameterToken.cs
- GrabHandleGlyph.cs
- BuildProviderUtils.cs
- SystemNetHelpers.cs
- DataObjectPastingEventArgs.cs
- CookieParameter.cs
- EventItfInfo.cs
- _ContextAwareResult.cs
- XmlSerializationReader.cs
- XPathDocumentNavigator.cs
- Stroke2.cs
- HttpFileCollection.cs
- SmiGettersStream.cs
- securitymgrsite.cs
- Viewport3DVisual.cs
- EntryIndex.cs
- XmlSchemaSubstitutionGroup.cs
- FloaterParagraph.cs
- ExpressionBindingCollection.cs
- ExceptionTrace.cs
- BindingMAnagerBase.cs
- XpsFilter.cs
- WebRequestModulesSection.cs
- WebHeaderCollection.cs
- Composition.cs
- EntityProviderServices.cs
- HMACSHA384.cs
- XamlTemplateSerializer.cs
- EdmEntityTypeAttribute.cs
- Size3D.cs
- XmlSchemaValidator.cs
- RoleGroup.cs
- RotateTransform.cs
- WinInet.cs
- hresults.cs
- SelectionChangedEventArgs.cs
- FileDetails.cs
- Drawing.cs
- KeyValueSerializer.cs
- HideDisabledControlAdapter.cs
- Point3DAnimationUsingKeyFrames.cs
- CheckBox.cs
- RuleRefElement.cs
- SuppressIldasmAttribute.cs
- HostingEnvironmentException.cs
- CommandEventArgs.cs
- ConfigXmlWhitespace.cs
- ShaderEffect.cs
- EventLogTraceListener.cs
- Scanner.cs
- TimeZone.cs
- UIAgentMonitorHandle.cs
- PersistenceTypeAttribute.cs
- TreeSet.cs
- ComponentCollection.cs
- MsmqIntegrationMessagePool.cs
- NotifyIcon.cs
- ButtonBase.cs
- HttpCookiesSection.cs
- KeyValueConfigurationCollection.cs
- IODescriptionAttribute.cs
- PrivacyNoticeBindingElementImporter.cs
- WebUtil.cs