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
- TextParagraphCache.cs
- BeginEvent.cs
- XmlDataSourceView.cs
- FileIOPermission.cs
- SelectionItemPattern.cs
- CheckBoxAutomationPeer.cs
- StubHelpers.cs
- Knowncolors.cs
- DbConnectionClosed.cs
- NumericUpDownAccelerationCollection.cs
- SupportedAddressingMode.cs
- BindableAttribute.cs
- ObjectParameterCollection.cs
- ImpersonationContext.cs
- MatrixTransform.cs
- DragEvent.cs
- CallbackCorrelationInitializer.cs
- Constraint.cs
- QueryPageSettingsEventArgs.cs
- DrawingState.cs
- HttpProfileGroupBase.cs
- SolidBrush.cs
- XmlSerializerAssemblyAttribute.cs
- RegisteredDisposeScript.cs
- InheritanceAttribute.cs
- HttpCacheParams.cs
- BoolExpression.cs
- ActiveXHelper.cs
- Lasso.cs
- QuinticEase.cs
- DataControlImageButton.cs
- CharEnumerator.cs
- MessageLogger.cs
- HandlerWithFactory.cs
- BufferedStream.cs
- TemplatedMailWebEventProvider.cs
- EditCommandColumn.cs
- AllMembershipCondition.cs
- ConnectionStringSettingsCollection.cs
- PackageRelationshipSelector.cs
- RecommendedAsConfigurableAttribute.cs
- UnwrappedTypesXmlSerializerManager.cs
- SqlDataSourceQueryEditorForm.cs
- DataView.cs
- GPRECTF.cs
- BuilderPropertyEntry.cs
- DataService.cs
- Group.cs
- Deflater.cs
- AutoResetEvent.cs
- DbConnectionHelper.cs
- SourceCollection.cs
- DoubleKeyFrameCollection.cs
- DataListItem.cs
- AsyncCallback.cs
- DateTimeConverter2.cs
- GroupBox.cs
- BitVector32.cs
- Paragraph.cs
- ZoneMembershipCondition.cs
- SecureStringHasher.cs
- OutOfProcStateClientManager.cs
- DelegatingConfigHost.cs
- KeyValuePairs.cs
- SimplePropertyEntry.cs
- EditorPart.cs
- ThicknessKeyFrameCollection.cs
- EntityDataSourceColumn.cs
- HandlerFactoryCache.cs
- GridViewCellAutomationPeer.cs
- WebAdminConfigurationHelper.cs
- regiisutil.cs
- SchemaElementDecl.cs
- IERequestCache.cs
- ComplexBindingPropertiesAttribute.cs
- ProcessHost.cs
- XmlQueryOutput.cs
- Configuration.cs
- DataGridViewTopRowAccessibleObject.cs
- XmlSchemaAnyAttribute.cs
- PointCollectionConverter.cs
- RepeaterItemEventArgs.cs
- LocatorPartList.cs
- ServiceOperation.cs
- KnownColorTable.cs
- InstanceValue.cs
- PointAnimationClockResource.cs
- BulletedListEventArgs.cs
- DesignerActionUIService.cs
- ComponentEvent.cs
- GridViewColumnCollectionChangedEventArgs.cs
- AndAlso.cs
- SizeAnimationClockResource.cs
- NativeMethods.cs
- _TLSstream.cs
- SoundPlayerAction.cs
- DataSourceView.cs
- XmlSchemaValidationException.cs
- TableCellCollection.cs
- WinFormsUtils.cs