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
- MatrixAnimationUsingPath.cs
- ListViewContainer.cs
- AdCreatedEventArgs.cs
- Console.cs
- ProjectedSlot.cs
- DataSourceView.cs
- NullableBoolConverter.cs
- TrustLevel.cs
- LinqDataSourceView.cs
- DataServiceEntityAttribute.cs
- WeakReferenceEnumerator.cs
- ServicePointManagerElement.cs
- GcSettings.cs
- UnaryExpressionHelper.cs
- RegistryPermission.cs
- CommentAction.cs
- MenuEventArgs.cs
- DynamicValidatorEventArgs.cs
- XPathSelfQuery.cs
- BindableTemplateBuilder.cs
- FormViewDesigner.cs
- TimelineGroup.cs
- XPathNavigatorReader.cs
- Int32KeyFrameCollection.cs
- SizeAnimationBase.cs
- ButtonChrome.cs
- IsolatedStorage.cs
- ObservableCollection.cs
- SamlEvidence.cs
- ServiceHostingEnvironmentSection.cs
- RegionInfo.cs
- HtmlElement.cs
- WorkflowDesignerMessageFilter.cs
- ForeignConstraint.cs
- Validator.cs
- ApplyImportsAction.cs
- Size3D.cs
- ButtonField.cs
- PersonalizationStateInfo.cs
- EventMappingSettingsCollection.cs
- RightsManagementSuppressedStream.cs
- FileChangesMonitor.cs
- GestureRecognitionResult.cs
- SqlSelectStatement.cs
- PolicyLevel.cs
- FormsAuthenticationUser.cs
- CompatibleComparer.cs
- SimpleHandlerFactory.cs
- GlyphRunDrawing.cs
- ApplicationDirectory.cs
- SerializerProvider.cs
- Roles.cs
- TextTreeUndo.cs
- SequentialActivityDesigner.cs
- KeyFrames.cs
- CollectionContainer.cs
- ZipIOBlockManager.cs
- EntityDataSourceMemberPath.cs
- CallbackValidator.cs
- elementinformation.cs
- MetadataProperty.cs
- TransformerTypeCollection.cs
- EntityDataSourceState.cs
- ReadWriteSpinLock.cs
- ApplyHostConfigurationBehavior.cs
- SqlDataSourceEnumerator.cs
- CollectionView.cs
- Matrix3DStack.cs
- WinFormsSpinner.cs
- SqlTriggerAttribute.cs
- EncryptedKey.cs
- XslUrlEditor.cs
- Color.cs
- Conditional.cs
- IisTraceListener.cs
- VisualStyleElement.cs
- EnumerableCollectionView.cs
- SqlSelectStatement.cs
- CodeDomSerializer.cs
- MappingModelBuildProvider.cs
- InputScopeConverter.cs
- XNodeValidator.cs
- RegexWorker.cs
- MenuTracker.cs
- ListViewEditEventArgs.cs
- ImportContext.cs
- RectAnimationUsingKeyFrames.cs
- WebSysDisplayNameAttribute.cs
- ApplicationBuildProvider.cs
- AnimationClock.cs
- MailMessageEventArgs.cs
- BaseTemplateParser.cs
- ConfigurationCollectionAttribute.cs
- Slider.cs
- LineSegment.cs
- CurrentChangingEventArgs.cs
- DrawingGroupDrawingContext.cs
- ByteStream.cs
- CDSCollectionETWBCLProvider.cs
- InputScope.cs