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
- Encoding.cs
- CanonicalXml.cs
- SplineKeyFrames.cs
- WebResourceUtil.cs
- DecryptRequest.cs
- HyperLinkColumn.cs
- CharUnicodeInfo.cs
- DefaultPropertyAttribute.cs
- CharacterString.cs
- XPathNodePointer.cs
- DuplicateWaitObjectException.cs
- XmlUtilWriter.cs
- NetworkInterface.cs
- DispatcherExceptionFilterEventArgs.cs
- XmlUrlResolver.cs
- StickyNote.cs
- FontClient.cs
- DbDataRecord.cs
- DrawingGroupDrawingContext.cs
- SecondaryIndexList.cs
- HttpCachePolicyWrapper.cs
- BorderGapMaskConverter.cs
- EnumMemberAttribute.cs
- PageRouteHandler.cs
- IResourceProvider.cs
- ConfigXmlSignificantWhitespace.cs
- SynchronizedKeyedCollection.cs
- PrimitiveCodeDomSerializer.cs
- Token.cs
- SchemaNames.cs
- StringWriter.cs
- HttpProfileBase.cs
- shaper.cs
- TextPointer.cs
- ReadOnlyDictionary.cs
- TextBoxBase.cs
- IPPacketInformation.cs
- ResourceDictionaryCollection.cs
- ThreadExceptionEvent.cs
- ProcessModule.cs
- NeutralResourcesLanguageAttribute.cs
- MetadataCache.cs
- HTMLTagNameToTypeMapper.cs
- AttachedPropertyMethodSelector.cs
- BrowserDefinitionCollection.cs
- ZoneIdentityPermission.cs
- BaseValidator.cs
- Crc32Helper.cs
- AsyncInvokeContext.cs
- DataGridViewIntLinkedList.cs
- SafePEFileHandle.cs
- XPathParser.cs
- ImageClickEventArgs.cs
- WasNotInstalledException.cs
- DownloadProgressEventArgs.cs
- ProxyWebPartManager.cs
- Guid.cs
- LockingPersistenceProvider.cs
- OracleString.cs
- WorkflowStateRollbackService.cs
- _LoggingObject.cs
- ValidatorCompatibilityHelper.cs
- SliderAutomationPeer.cs
- SqlProcedureAttribute.cs
- JournalEntryListConverter.cs
- ListCollectionView.cs
- MemberMemberBinding.cs
- ListViewInsertionMark.cs
- DesignerVerbCollection.cs
- Header.cs
- DeleteMemberBinder.cs
- SizeChangedInfo.cs
- ParagraphResult.cs
- StandardMenuStripVerb.cs
- PrinterSettings.cs
- ReflectionServiceProvider.cs
- ButtonColumn.cs
- WebBrowserEvent.cs
- SectionXmlInfo.cs
- JsonGlobals.cs
- XmlSchemaImport.cs
- NativeMethodsOther.cs
- InfocardChannelParameter.cs
- AttachedPropertyBrowsableAttribute.cs
- CalendarDay.cs
- CodePropertyReferenceExpression.cs
- TypedCompletedAsyncResult.cs
- Stack.cs
- DataGrid.cs
- MessageQueueEnumerator.cs
- GenericQueueSurrogate.cs
- WmpBitmapDecoder.cs
- UnauthorizedWebPart.cs
- SerialReceived.cs
- Codec.cs
- ObjectDataSourceDesigner.cs
- XmlNodeChangedEventManager.cs
- TableColumnCollection.cs
- ComplexPropertyEntry.cs
- CodePrimitiveExpression.cs