Code:
/ FX-1434 / FX-1434 / 1.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
- InputQueueChannelAcceptor.cs
- HtmlInputHidden.cs
- PropertyEmitterBase.cs
- TransactionInformation.cs
- BamlVersionHeader.cs
- RowParagraph.cs
- TextDpi.cs
- LinqDataSourceView.cs
- RestHandler.cs
- AffineTransform3D.cs
- DataGridViewCellStyleConverter.cs
- SystemResources.cs
- MenuStrip.cs
- SplitterDesigner.cs
- ToggleProviderWrapper.cs
- AuditLogLocation.cs
- TreeViewCancelEvent.cs
- View.cs
- VisualBasicSettingsHandler.cs
- List.cs
- TextProviderWrapper.cs
- ZoneIdentityPermission.cs
- HashMembershipCondition.cs
- X509Utils.cs
- AlgoModule.cs
- DataGridColumn.cs
- DataGridViewImageColumn.cs
- BaseUriHelper.cs
- MessageDesigner.cs
- TreeViewHitTestInfo.cs
- DoubleAnimationUsingPath.cs
- Executor.cs
- BaseWebProxyFinder.cs
- DataGridViewRowConverter.cs
- EncryptedKeyIdentifierClause.cs
- ProcessThread.cs
- SqlCacheDependencySection.cs
- BufferedGraphicsManager.cs
- ThemeDirectoryCompiler.cs
- TypographyProperties.cs
- HwndSource.cs
- WsatStrings.cs
- Bold.cs
- CodeIdentifiers.cs
- Main.cs
- SaveWorkflowCommand.cs
- SessionParameter.cs
- _CommandStream.cs
- TextWriterTraceListener.cs
- ping.cs
- DataGridViewRowsAddedEventArgs.cs
- LabelDesigner.cs
- _KerberosClient.cs
- SymbolMethod.cs
- DetectEofStream.cs
- Compiler.cs
- ConfigurationManagerHelper.cs
- OneOfConst.cs
- StylusEventArgs.cs
- ComponentEvent.cs
- RadioButtonList.cs
- Padding.cs
- XmlSchemaAny.cs
- GregorianCalendarHelper.cs
- TraversalRequest.cs
- SchemaEntity.cs
- VarInfo.cs
- EnumerableCollectionView.cs
- TokenizerHelper.cs
- OutOfMemoryException.cs
- ResourceContainer.cs
- dbenumerator.cs
- ContextMenuStrip.cs
- ContactManager.cs
- Listbox.cs
- DrawListViewSubItemEventArgs.cs
- RightsManagementUser.cs
- LockCookie.cs
- autovalidator.cs
- SwitchExpression.cs
- MessageDecoder.cs
- RuntimeDelegateArgument.cs
- XPathNodePointer.cs
- ISAPIRuntime.cs
- SQLMoneyStorage.cs
- SmtpSection.cs
- VariableAction.cs
- ParallelTimeline.cs
- MultiAsyncResult.cs
- Int32CAMarshaler.cs
- RedBlackList.cs
- WebServiceEnumData.cs
- ExpressionBinding.cs
- BindingNavigatorDesigner.cs
- StateDesignerConnector.cs
- M3DUtil.cs
- CheckedListBox.cs
- SplitterCancelEvent.cs
- ForeignKeyConstraint.cs
- XmlArrayItemAttribute.cs