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
- WrapPanel.cs
- SystemWebCachingSectionGroup.cs
- Overlapped.cs
- FlowDocumentPage.cs
- DbConnectionPool.cs
- Emitter.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- XmlBindingWorker.cs
- DeferredSelectedIndexReference.cs
- SafeNativeMethods.cs
- EntityDataSourceChangedEventArgs.cs
- DeleteIndexBinder.cs
- AggregateNode.cs
- Focus.cs
- ThreadAbortException.cs
- LocationSectionRecord.cs
- MobileTextWriter.cs
- Pen.cs
- ImageFormat.cs
- UnknownWrapper.cs
- MessageQueuePermissionEntry.cs
- Error.cs
- CollectionTypeElement.cs
- IntranetCredentialPolicy.cs
- remotingproxy.cs
- DockPatternIdentifiers.cs
- CssStyleCollection.cs
- CollectionChangeEventArgs.cs
- ChtmlTextBoxAdapter.cs
- HwndStylusInputProvider.cs
- SecurityTokenValidationException.cs
- VersionedStreamOwner.cs
- DesigntimeLicenseContext.cs
- AnonymousIdentificationSection.cs
- CommandID.cs
- StringUtil.cs
- BodyGlyph.cs
- BreakRecordTable.cs
- FixedSOMTableRow.cs
- TreeBuilderBamlTranslator.cs
- AssociationType.cs
- MetabaseSettings.cs
- ToggleButton.cs
- SerializableAttribute.cs
- BaseContextMenu.cs
- ResourcePool.cs
- InvalidAsynchronousStateException.cs
- EventManager.cs
- MenuItemAutomationPeer.cs
- SessionViewState.cs
- DbParameterHelper.cs
- TransportSecurityProtocol.cs
- TypeResolvingOptionsAttribute.cs
- ellipse.cs
- PenCursorManager.cs
- ModelToObjectValueConverter.cs
- BinaryReader.cs
- DrawingAttributeSerializer.cs
- QuotedPrintableStream.cs
- MessagePartSpecification.cs
- CodeAttributeArgument.cs
- BitmapEffectInputData.cs
- WhitespaceSignificantCollectionAttribute.cs
- ClientScriptManagerWrapper.cs
- PrintPreviewGraphics.cs
- DeflateInput.cs
- ButtonBaseAutomationPeer.cs
- FloatSumAggregationOperator.cs
- ServerValidateEventArgs.cs
- ArrangedElement.cs
- ZipFileInfo.cs
- ObjectPersistData.cs
- QueryCursorEventArgs.cs
- SortedList.cs
- RenderDataDrawingContext.cs
- codemethodreferenceexpression.cs
- CounterCreationData.cs
- BrowserDefinition.cs
- BasicViewGenerator.cs
- CompiledQuery.cs
- PolicyDesigner.cs
- LogSwitch.cs
- StorageInfo.cs
- SiteMapNodeItemEventArgs.cs
- KnownTypesProvider.cs
- Section.cs
- FigureHelper.cs
- recordstate.cs
- AuthenticationModuleElementCollection.cs
- BuilderInfo.cs
- DispatcherBuilder.cs
- Pen.cs
- Deflater.cs
- ComponentDispatcherThread.cs
- DocComment.cs
- PrintDialog.cs
- wmiprovider.cs
- SkinIDTypeConverter.cs
- unitconverter.cs
- InkCanvasFeedbackAdorner.cs