Code:
/ FX-1434 / FX-1434 / 1.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
- ListenerConnectionDemuxer.cs
- RuntimeArgumentHandle.cs
- HtmlSelect.cs
- WizardPanel.cs
- ButtonBaseAdapter.cs
- ScaleTransform.cs
- TextBoxAutoCompleteSourceConverter.cs
- MethodAccessException.cs
- TextEffectResolver.cs
- TreeIterators.cs
- UseLicense.cs
- JsonFormatWriterGenerator.cs
- LassoSelectionBehavior.cs
- SafeNativeMethodsCLR.cs
- GroupLabel.cs
- ApplicationInfo.cs
- WorkflowServiceHostFactory.cs
- JsonSerializer.cs
- AvTrace.cs
- ComponentEditorPage.cs
- Rectangle.cs
- TaiwanCalendar.cs
- RawKeyboardInputReport.cs
- IntSecurity.cs
- PolyLineSegment.cs
- ComplusTypeValidator.cs
- DataShape.cs
- NegationPusher.cs
- XmlSiteMapProvider.cs
- CodeDelegateInvokeExpression.cs
- PrivateFontCollection.cs
- ScaleTransform3D.cs
- ProxyHelper.cs
- CompositeTypefaceMetrics.cs
- XmlNotation.cs
- ExpandSegmentCollection.cs
- XmlAnyElementAttributes.cs
- WebServiceErrorEvent.cs
- IdentitySection.cs
- ContextMenuStripActionList.cs
- AllMembershipCondition.cs
- sitestring.cs
- securestring.cs
- FrameworkContentElementAutomationPeer.cs
- OneOfScalarConst.cs
- SQLMembershipProvider.cs
- FontConverter.cs
- ProxyFragment.cs
- DecoderFallbackWithFailureFlag.cs
- AssociationType.cs
- SystemIPInterfaceProperties.cs
- EntityDataSourceSelectingEventArgs.cs
- DataGridTable.cs
- TypeConverterHelper.cs
- WindowsContainer.cs
- ProgressBarAutomationPeer.cs
- SingleStorage.cs
- ConstrainedGroup.cs
- InputProviderSite.cs
- FixedSOMTableCell.cs
- ProvidePropertyAttribute.cs
- SerializationSectionGroup.cs
- MulticastNotSupportedException.cs
- Viewport2DVisual3D.cs
- PropertyFilterAttribute.cs
- DataObjectEventArgs.cs
- CharKeyFrameCollection.cs
- InheritanceRules.cs
- ExeContext.cs
- StylusButton.cs
- QuotedPrintableStream.cs
- DragEventArgs.cs
- DoubleCollectionValueSerializer.cs
- FixedNode.cs
- xml.cs
- BindingMemberInfo.cs
- WebEventTraceProvider.cs
- InputElement.cs
- MetaChildrenColumn.cs
- GridViewRowPresenter.cs
- TypefaceMetricsCache.cs
- ToolStripProgressBar.cs
- ExtendedPropertyDescriptor.cs
- PeerApplication.cs
- OleServicesContext.cs
- KeyBinding.cs
- PropertyInfoSet.cs
- RIPEMD160Managed.cs
- SchemaSetCompiler.cs
- InternalDispatchObject.cs
- Point3DCollection.cs
- BufferAllocator.cs
- PackageStore.cs
- CodePrimitiveExpression.cs
- OracleLob.cs
- EmptyStringExpandableObjectConverter.cs
- TextParentUndoUnit.cs
- RoutingChannelExtension.cs
- ScriptResourceDefinition.cs
- MarkupCompilePass1.cs