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
- Fx.cs
- XmlSerializerAssemblyAttribute.cs
- TreeNodeCollection.cs
- SmtpDateTime.cs
- followingquery.cs
- ZipIOCentralDirectoryFileHeader.cs
- TypeBrowserDialog.cs
- ModelService.cs
- ConfigurationLoaderException.cs
- StreamReader.cs
- Misc.cs
- TreeNodeEventArgs.cs
- ConfigurationStrings.cs
- DictionaryBase.cs
- LowerCaseStringConverter.cs
- HttpVersion.cs
- BamlWriter.cs
- MultiViewDesigner.cs
- TextElement.cs
- Debug.cs
- KernelTypeValidation.cs
- InternalMappingException.cs
- dtdvalidator.cs
- SmtpFailedRecipientException.cs
- FilteredDataSetHelper.cs
- _ShellExpression.cs
- CodeGeneratorAttribute.cs
- ListParaClient.cs
- TextEditorCharacters.cs
- ByeMessage11.cs
- LayoutEvent.cs
- ContainerAction.cs
- DataGridComponentEditor.cs
- WindowsAuthenticationEventArgs.cs
- SqlCommandSet.cs
- TdsParserSafeHandles.cs
- ChannelTokenTypeConverter.cs
- MemberBinding.cs
- WebPartConnectionCollection.cs
- SettingsBase.cs
- CompressEmulationStream.cs
- LoginCancelEventArgs.cs
- LocatorBase.cs
- GridToolTip.cs
- TdsRecordBufferSetter.cs
- CommonXSendMessage.cs
- GenericsInstances.cs
- TraceContextEventArgs.cs
- ResourceContainerWrapper.cs
- InvokeMethodActivity.cs
- CompositeFontParser.cs
- PerformanceCounterScope.cs
- SmtpCommands.cs
- BuildResultCache.cs
- SEHException.cs
- DropShadowBitmapEffect.cs
- DependencyObjectPropertyDescriptor.cs
- PerfService.cs
- Odbc32.cs
- UnsafePeerToPeerMethods.cs
- TextLine.cs
- SchemaImporterExtensionsSection.cs
- ArithmeticException.cs
- PageStatePersister.cs
- WinFormsUtils.cs
- CopyNodeSetAction.cs
- VariableValue.cs
- LongValidatorAttribute.cs
- ButtonBase.cs
- WebConfigurationHost.cs
- OracleDataAdapter.cs
- TrackingDataItemValue.cs
- DesignerTransactionCloseEvent.cs
- OleDbRowUpdatedEvent.cs
- PointAnimationUsingKeyFrames.cs
- _LoggingObject.cs
- UserPrincipalNameElement.cs
- ObjectQuery.cs
- UidManager.cs
- SmiEventSink.cs
- WebZone.cs
- Serializer.cs
- TransformerInfoCollection.cs
- RegexParser.cs
- precedingquery.cs
- EntityDataSourceEntityTypeFilterItem.cs
- DockProviderWrapper.cs
- SqlUtils.cs
- ScaleTransform.cs
- _KerberosClient.cs
- DocumentEventArgs.cs
- ConsumerConnectionPointCollection.cs
- unsafeIndexingFilterStream.cs
- TraceEventCache.cs
- OleStrCAMarshaler.cs
- TimerTable.cs
- MessageBox.cs
- CLRBindingWorker.cs
- PixelFormatConverter.cs
- LogAppendAsyncResult.cs