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
- MSAAEventDispatcher.cs
- CacheEntry.cs
- DataSourceControl.cs
- Enum.cs
- JournalEntryStack.cs
- ContourSegment.cs
- XmlSchemaSimpleContent.cs
- ProcessInputEventArgs.cs
- RowToParametersTransformer.cs
- BitmapScalingModeValidation.cs
- IdentityReference.cs
- _LocalDataStore.cs
- ContainsRowNumberChecker.cs
- DataGridColumnStyleMappingNameEditor.cs
- ListenerServiceInstallComponent.cs
- ImageAttributes.cs
- PageRanges.cs
- URIFormatException.cs
- SqlFunctionAttribute.cs
- AttributeUsageAttribute.cs
- DataGridViewCellConverter.cs
- UniqueConstraint.cs
- MediaElement.cs
- TextModifier.cs
- WebServicesSection.cs
- ConditionalWeakTable.cs
- SurrogateEncoder.cs
- Line.cs
- ControlPropertyNameConverter.cs
- Guid.cs
- WindowsTooltip.cs
- PageThemeBuildProvider.cs
- TextContainerHelper.cs
- DbProviderServices.cs
- SortFieldComparer.cs
- NotificationContext.cs
- XmlReflectionMember.cs
- PropertiesTab.cs
- PtsHelper.cs
- SqlHelper.cs
- Cursor.cs
- TextServicesCompartmentContext.cs
- FilterElement.cs
- AndCondition.cs
- PerformanceCounterPermissionEntry.cs
- FormViewCommandEventArgs.cs
- StylusOverProperty.cs
- DynamicScriptObject.cs
- RequestNavigateEventArgs.cs
- ContentPosition.cs
- XmlElementList.cs
- NamespaceEmitter.cs
- Decorator.cs
- RealizationContext.cs
- Parameter.cs
- SettingsPropertyIsReadOnlyException.cs
- ProxyWebPart.cs
- OSFeature.cs
- ToolBar.cs
- ButtonBaseAdapter.cs
- CodeTypeDeclarationCollection.cs
- CategoryEditor.cs
- TableLayoutStyleCollection.cs
- SHA256Cng.cs
- PointCollection.cs
- X509ChainPolicy.cs
- DetailsViewInsertEventArgs.cs
- ToolStripRenderEventArgs.cs
- ModuleBuilder.cs
- PhoneCall.cs
- ManifestSignedXml.cs
- TextSelectionHighlightLayer.cs
- SystemResourceKey.cs
- baseaxisquery.cs
- MulticastIPAddressInformationCollection.cs
- PartialTrustVisibleAssembly.cs
- LogFlushAsyncResult.cs
- HttpCacheVaryByContentEncodings.cs
- MissingManifestResourceException.cs
- RegexRunnerFactory.cs
- CodeMemberEvent.cs
- Mutex.cs
- AnnotationAdorner.cs
- mactripleDES.cs
- DesignSurface.cs
- XsltLibrary.cs
- ReadingWritingEntityEventArgs.cs
- basemetadatamappingvisitor.cs
- SapiRecoInterop.cs
- Comparer.cs
- SqlExpressionNullability.cs
- SparseMemoryStream.cs
- WebPartVerb.cs
- InkCanvas.cs
- SiteMapNodeCollection.cs
- EllipseGeometry.cs
- HtmlInputReset.cs
- Style.cs
- InstanceNotFoundException.cs
- TemplateBindingExpressionConverter.cs