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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DocobjHost.cs
- IconHelper.cs
- SecUtil.cs
- FixedSOMFixedBlock.cs
- RepeaterItemEventArgs.cs
- Cursor.cs
- SnapLine.cs
- GestureRecognizer.cs
- ResourceDictionary.cs
- PageThemeParser.cs
- Environment.cs
- DataBoundControlHelper.cs
- SafeSecurityHandles.cs
- DbDataRecord.cs
- SelectionEditingBehavior.cs
- SizeAnimation.cs
- ServiceContractViewControl.cs
- DetailsViewPageEventArgs.cs
- CompilerResults.cs
- __TransparentProxy.cs
- ScrollBarRenderer.cs
- ByteAnimation.cs
- CheckableControlBaseAdapter.cs
- __ConsoleStream.cs
- ComPlusSynchronizationContext.cs
- ConfigDefinitionUpdates.cs
- GroupItemAutomationPeer.cs
- RequestResponse.cs
- AnimationException.cs
- InternalsVisibleToAttribute.cs
- MemberPathMap.cs
- ResolveCriteriaApril2005.cs
- HttpHandlerActionCollection.cs
- Connector.cs
- ToolStripDropDownItem.cs
- XPathAncestorQuery.cs
- TreeNodeEventArgs.cs
- remotingproxy.cs
- HttpConfigurationContext.cs
- CachedFontFamily.cs
- WindowsAuthenticationEventArgs.cs
- DataGridViewRowPrePaintEventArgs.cs
- FontWeight.cs
- XmlSchemaSimpleContent.cs
- ListViewGroupConverter.cs
- XamlWrappingReader.cs
- ValueProviderWrapper.cs
- WindowsSolidBrush.cs
- MembershipPasswordException.cs
- FileLogRecordStream.cs
- IdentityValidationException.cs
- SharedPerformanceCounter.cs
- TreeViewDesigner.cs
- SyndicationFeed.cs
- OraclePermissionAttribute.cs
- DispatcherOperation.cs
- FontConverter.cs
- XmlIlGenerator.cs
- RadialGradientBrush.cs
- DynamicDiscoveryDocument.cs
- DependencyObjectProvider.cs
- BlockingCollection.cs
- TreeViewItem.cs
- DateTimeOffsetStorage.cs
- ArraySubsetEnumerator.cs
- BitmapEffectInputData.cs
- SoapAttributeOverrides.cs
- EventProxy.cs
- EventMap.cs
- RightsManagementLicense.cs
- WmpBitmapEncoder.cs
- GeneralTransform.cs
- TracedNativeMethods.cs
- WebPartExportVerb.cs
- FacetDescriptionElement.cs
- CompiledELinqQueryState.cs
- RangeBase.cs
- Stroke2.cs
- DataServices.cs
- CodeIdentifier.cs
- UnmanagedMarshal.cs
- ToolboxService.cs
- ToolStripArrowRenderEventArgs.cs
- TreeViewImageKeyConverter.cs
- XmlAttributeCollection.cs
- ExclusiveCanonicalizationTransform.cs
- _SslState.cs
- PageThemeBuildProvider.cs
- WebServiceMethodData.cs
- RotateTransform3D.cs
- TypeReference.cs
- ButtonAutomationPeer.cs
- ItemsPresenter.cs
- ImageButton.cs
- AdornerDecorator.cs
- WorkerProcess.cs
- SessionEndedEventArgs.cs
- PropertyChangeTracker.cs
- ProcessHostMapPath.cs
- TTSEvent.cs