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
- WebHttpSecurityModeHelper.cs
- PictureBox.cs
- TrustLevelCollection.cs
- MobileContainerDesigner.cs
- HwndKeyboardInputProvider.cs
- ListViewTableRow.cs
- SoapProcessingBehavior.cs
- TextBoxBase.cs
- SiteOfOriginContainer.cs
- BufferModesCollection.cs
- BufferedWebEventProvider.cs
- UrlMappingsModule.cs
- _IPv4Address.cs
- DesignerImageAdapter.cs
- SqlDataSource.cs
- HandlerWithFactory.cs
- WindowInteropHelper.cs
- BaseProcessor.cs
- SafeCoTaskMem.cs
- ItemsPresenter.cs
- OleDbInfoMessageEvent.cs
- MethodBuilder.cs
- SqlConnection.cs
- MetadataItemEmitter.cs
- ClientConfigPaths.cs
- wgx_render.cs
- FlowchartDesigner.xaml.cs
- XPathAxisIterator.cs
- RefreshPropertiesAttribute.cs
- AppDomainAttributes.cs
- SByte.cs
- SelectionList.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- WebSysDisplayNameAttribute.cs
- CompilerLocalReference.cs
- JsonClassDataContract.cs
- DataGridViewElement.cs
- VectorCollectionConverter.cs
- ScrollEvent.cs
- HostingPreferredMapPath.cs
- TranslateTransform3D.cs
- FontConverter.cs
- ServiceAuthorizationElement.cs
- IntegerValidatorAttribute.cs
- LinkedResourceCollection.cs
- mediaeventargs.cs
- SubpageParaClient.cs
- ShapingWorkspace.cs
- SimpleFieldTemplateFactory.cs
- ByteAnimationUsingKeyFrames.cs
- ConnectorDragDropGlyph.cs
- XPathSelectionIterator.cs
- ParallelLoopState.cs
- SchemaDeclBase.cs
- XmlLinkedNode.cs
- AdapterDictionary.cs
- ExpandSegmentCollection.cs
- ControlAdapter.cs
- StylusButton.cs
- EntityException.cs
- DataGridTablesFactory.cs
- TextAnchor.cs
- XmlValidatingReaderImpl.cs
- ObjectContext.cs
- PersonalizationStateInfoCollection.cs
- LocatorManager.cs
- FontEmbeddingManager.cs
- Regex.cs
- BinaryCommonClasses.cs
- SiteMapDataSource.cs
- TreeViewItemAutomationPeer.cs
- CertificateElement.cs
- TreeNodeEventArgs.cs
- ByteConverter.cs
- XmlSchemaInclude.cs
- XmlUtil.cs
- Thumb.cs
- ServiceAppDomainAssociationProvider.cs
- VariableAction.cs
- Section.cs
- SafeNativeMethods.cs
- OverflowException.cs
- FastEncoder.cs
- ControlCommandSet.cs
- listitem.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- EventLogger.cs
- ScaleTransform.cs
- DataGridItem.cs
- DocumentOrderComparer.cs
- RegexNode.cs
- log.cs
- Size.cs
- DesignerWithHeader.cs
- ValidationRuleCollection.cs
- WebZone.cs
- BinaryWriter.cs
- GroupByExpressionRewriter.cs
- WorkflowInstanceContextProvider.cs
- DefaultProxySection.cs