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
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- CachedCompositeFamily.cs
- DataSourceControlBuilder.cs
- WebUtil.cs
- _ConnectStream.cs
- RowBinding.cs
- ServicePointManager.cs
- UnknownBitmapDecoder.cs
- CommandExpr.cs
- DBPropSet.cs
- TextViewSelectionProcessor.cs
- Parsers.cs
- RoutedEventValueSerializer.cs
- Int32CollectionConverter.cs
- SequenceNumber.cs
- UICuesEvent.cs
- SqlUtil.cs
- Model3D.cs
- CellLabel.cs
- BaseParser.cs
- OracleInternalConnection.cs
- GradientBrush.cs
- ControlsConfig.cs
- SizeFConverter.cs
- VerificationException.cs
- CustomAttributeFormatException.cs
- FieldBuilder.cs
- OperationSelectorBehavior.cs
- TraceLevelHelper.cs
- X509Certificate2Collection.cs
- XmlUtf8RawTextWriter.cs
- WhitespaceRuleReader.cs
- MobileControlBuilder.cs
- ObjectConverter.cs
- SmiEventStream.cs
- MultiTouchSystemGestureLogic.cs
- InputProviderSite.cs
- DataGridViewColumnEventArgs.cs
- SubclassTypeValidator.cs
- SystemThemeKey.cs
- BaseHashHelper.cs
- CollectionEditor.cs
- ScrollEvent.cs
- PerfCounters.cs
- XsdCachingReader.cs
- FunctionCommandText.cs
- SafeNativeMethods.cs
- NameNode.cs
- QueryGeneratorBase.cs
- ContentPlaceHolder.cs
- ContentElement.cs
- Canvas.cs
- ToolStripDropDownMenu.cs
- PerSessionInstanceContextProvider.cs
- TableStyle.cs
- XsltFunctions.cs
- EventArgs.cs
- SmtpReplyReaderFactory.cs
- SingleAnimationBase.cs
- StylusCollection.cs
- ErrorEventArgs.cs
- DSASignatureFormatter.cs
- ClientConfigurationHost.cs
- RegexTypeEditor.cs
- DataGridViewUtilities.cs
- PropertyItemInternal.cs
- TraceContext.cs
- AdapterDictionary.cs
- PersonalizationProvider.cs
- SqlPersonalizationProvider.cs
- FormsAuthenticationTicket.cs
- Compiler.cs
- InputProcessorProfilesLoader.cs
- ConfigXmlCDataSection.cs
- EntitySqlQueryState.cs
- FileDialog.cs
- TransformDescriptor.cs
- DbMetaDataColumnNames.cs
- RegexRunnerFactory.cs
- RemotingAttributes.cs
- BuiltInExpr.cs
- ListViewItemMouseHoverEvent.cs
- XsltCompileContext.cs
- EllipseGeometry.cs
- PathGradientBrush.cs
- XmlAnyElementAttribute.cs
- HandoffBehavior.cs
- OdbcEnvironmentHandle.cs
- SafeHandles.cs
- OpenTypeCommon.cs
- EmptyReadOnlyDictionaryInternal.cs
- Vector3D.cs
- AsnEncodedData.cs
- TrustManager.cs
- TerminateWorkflow.cs
- ExpressionPrefixAttribute.cs
- EffectiveValueEntry.cs
- SparseMemoryStream.cs
- AffineTransform3D.cs
- ExpressionWriter.cs