Code:
/ DotNET / DotNET / 8.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
- CanonicalFontFamilyReference.cs
- RadioButtonDesigner.cs
- SqlCachedBuffer.cs
- oledbmetadatacollectionnames.cs
- WebPartDisplayModeCollection.cs
- XmlDocumentType.cs
- EvidenceTypeDescriptor.cs
- Unit.cs
- SQLBinary.cs
- SkipStoryboardToFill.cs
- TextEditorSpelling.cs
- ComponentCollection.cs
- BitSet.cs
- WebHostUnsafeNativeMethods.cs
- LicenseProviderAttribute.cs
- NotImplementedException.cs
- DictionaryEntry.cs
- CompressStream.cs
- PeerApplicationLaunchInfo.cs
- MLangCodePageEncoding.cs
- XD.cs
- ChannelSinkStacks.cs
- FloaterParagraph.cs
- ComboBoxItem.cs
- XPathNode.cs
- ScriptingProfileServiceSection.cs
- ValueQuery.cs
- EventToken.cs
- _TLSstream.cs
- InputLangChangeEvent.cs
- HtmlShimManager.cs
- MruCache.cs
- InputLanguageProfileNotifySink.cs
- FragmentQuery.cs
- Popup.cs
- ProviderConnectionPoint.cs
- CryptographicAttribute.cs
- EntityDataSourceMemberPath.cs
- Cursors.cs
- Size.cs
- GlyphInfoList.cs
- XmlSerializer.cs
- PolyLineSegment.cs
- WinEventTracker.cs
- QuadTree.cs
- ContainerControl.cs
- EntityDataSourceValidationException.cs
- HijriCalendar.cs
- OperationValidationEventArgs.cs
- TransformPattern.cs
- XamlTypeMapperSchemaContext.cs
- SettingsAttributeDictionary.cs
- HtmlInputCheckBox.cs
- ArrayConverter.cs
- SqlEnums.cs
- _BaseOverlappedAsyncResult.cs
- WebPartTracker.cs
- ThreadPool.cs
- BoundsDrawingContextWalker.cs
- SubMenuStyle.cs
- SoapUnknownHeader.cs
- DataGridViewAccessibleObject.cs
- MappingMetadataHelper.cs
- SmtpAuthenticationManager.cs
- CachedFontFamily.cs
- FormViewDeletedEventArgs.cs
- WmlImageAdapter.cs
- NominalTypeEliminator.cs
- FigureHelper.cs
- CoreChannel.cs
- DoubleIndependentAnimationStorage.cs
- UIElementCollection.cs
- FormViewInsertedEventArgs.cs
- GridView.cs
- StrokeIntersection.cs
- TableAdapterManagerNameHandler.cs
- CodeTypeReferenceExpression.cs
- Persist.cs
- DataGridViewCheckBoxColumn.cs
- WorkflowPersistenceContext.cs
- UserNameSecurityTokenAuthenticator.cs
- HwndAppCommandInputProvider.cs
- MultiTrigger.cs
- ScrollChrome.cs
- hwndwrapper.cs
- CardSpaceSelector.cs
- ResourceDescriptionAttribute.cs
- SafeFileMappingHandle.cs
- SchemaObjectWriter.cs
- OdbcFactory.cs
- ClientConfigurationSystem.cs
- ListParagraph.cs
- QilCloneVisitor.cs
- DiagnosticsConfiguration.cs
- SchemaNamespaceManager.cs
- VirtualDirectoryMappingCollection.cs
- WindowsScrollBarBits.cs
- XMLSyntaxException.cs
- AssemblyBuilderData.cs
- ObjectStateManagerMetadata.cs