Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / DataGridViewComponentPropertyGridSite.cs / 1 / DataGridViewComponentPropertyGridSite.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms.Design { using System; using System.Design; using System.CodeDom; using System.Collections; using System.Collections.Specialized; using System.ComponentModel; using System.ComponentModel.Design; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Reflection; using System.Windows.Forms; internal class DataGridViewComponentPropertyGridSite : ISite { private IServiceProvider sp; private IComponent comp; private bool inGetService = false; public DataGridViewComponentPropertyGridSite(IServiceProvider sp, IComponent comp) { this.sp = sp; this.comp = comp; } /** The component sited by this component site. */ ////// /// public IComponent Component {get {return comp;}} /** The container in which the component is sited. */ ///When implemented by a class, gets the component associated with the ///. /// /// public IContainer Container {get {return null;}} /** Indicates whether the component is in design mode. */ ///When implemented by a class, gets the container associated with the ///. /// /// public bool DesignMode {get {return false;}} /** * The name of the component. */ ///When implemented by a class, determines whether the component is in design mode. ////// /// public String Name { get {return null;} set {} } public object GetService(Type t) { if (!inGetService && sp != null) { try { inGetService = true; return sp.GetService(t); } finally { inGetService = false; } } return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.When implemented by a class, gets or sets the name of /// the component associated with the ///.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartRestoreVerb.cs
- ColumnClickEvent.cs
- SendingRequestEventArgs.cs
- ThemeInfoAttribute.cs
- BehaviorEditorPart.cs
- UserControl.cs
- ConfigurationManager.cs
- DataChangedEventManager.cs
- _AcceptOverlappedAsyncResult.cs
- ObjectTag.cs
- ListBox.cs
- SplitterPanel.cs
- CustomSignedXml.cs
- Context.cs
- CompareValidator.cs
- Soap11ServerProtocol.cs
- XpsSerializationManagerAsync.cs
- CommonObjectSecurity.cs
- ParsedRoute.cs
- CodeGen.cs
- XmlSerializer.cs
- RegistryConfigurationProvider.cs
- TreeIterators.cs
- SafeRightsManagementPubHandle.cs
- PathSegment.cs
- RootBrowserWindowAutomationPeer.cs
- ColumnWidthChangingEvent.cs
- InputLanguageEventArgs.cs
- Int32CollectionConverter.cs
- BitConverter.cs
- ConstraintStruct.cs
- Ray3DHitTestResult.cs
- FormsAuthenticationTicket.cs
- _ShellExpression.cs
- CloseSequence.cs
- InstancePersistenceContext.cs
- ReaderContextStackData.cs
- Expander.cs
- BrowserCapabilitiesFactory.cs
- BitHelper.cs
- ContactManager.cs
- ListCollectionView.cs
- PresentationSource.cs
- ServiceContractAttribute.cs
- DataErrorValidationRule.cs
- RectangleHotSpot.cs
- ToolStripDropDownButton.cs
- HostSecurityManager.cs
- MetadataArtifactLoader.cs
- ContentPropertyAttribute.cs
- GB18030Encoding.cs
- MaxMessageSizeStream.cs
- StyleTypedPropertyAttribute.cs
- CfgRule.cs
- CompModSwitches.cs
- WebHeaderCollection.cs
- M3DUtil.cs
- Internal.cs
- X509CertificateTrustedIssuerElementCollection.cs
- WindowVisualStateTracker.cs
- BulletChrome.cs
- DataGridViewColumnTypeEditor.cs
- SystemTcpConnection.cs
- PlainXmlWriter.cs
- ProfileService.cs
- GridViewEditEventArgs.cs
- ProcessHostServerConfig.cs
- CanonicalizationDriver.cs
- RuleAttributes.cs
- SymLanguageVendor.cs
- ErrorTableItemStyle.cs
- MetabaseReader.cs
- ConfigurationManager.cs
- CodeCommentStatementCollection.cs
- AssemblyBuilder.cs
- RowVisual.cs
- TextParaClient.cs
- DesignerAdapterUtil.cs
- CheckBoxPopupAdapter.cs
- CheckBoxRenderer.cs
- AutoGeneratedField.cs
- RequestSecurityTokenResponseCollection.cs
- LineBreak.cs
- BaseResourcesBuildProvider.cs
- IntAverageAggregationOperator.cs
- SocketException.cs
- SortedSetDebugView.cs
- ResourcePart.cs
- RIPEMD160Managed.cs
- ClassValidator.cs
- AppDomainManager.cs
- PerformanceCounter.cs
- IndicCharClassifier.cs
- SqlDataSourceConfigureFilterForm.cs
- SerializationInfo.cs
- ExpressionBindingCollection.cs
- DecimalAnimationBase.cs
- AnonymousIdentificationModule.cs
- UnsafeCollabNativeMethods.cs
- BamlLocalizationDictionary.cs