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
- CompositeDesignerAccessibleObject.cs
- StyleSheetComponentEditor.cs
- XslNumber.cs
- RegexReplacement.cs
- RequestUriProcessor.cs
- StructureChangedEventArgs.cs
- OleDbConnectionInternal.cs
- DataException.cs
- NumberSubstitution.cs
- BindToObject.cs
- RemoteWebConfigurationHost.cs
- UshortList2.cs
- querybuilder.cs
- DispatcherProcessingDisabled.cs
- ImageFormatConverter.cs
- TemplateAction.cs
- InputReportEventArgs.cs
- NativeCppClassAttribute.cs
- DocumentSequence.cs
- ValueOfAction.cs
- KeyValueConfigurationCollection.cs
- SmiConnection.cs
- webproxy.cs
- BitmapEffectInput.cs
- GC.cs
- JoinCqlBlock.cs
- HwndKeyboardInputProvider.cs
- BatchParser.cs
- TextSpan.cs
- FlowchartStart.xaml.cs
- ValidationException.cs
- ipaddressinformationcollection.cs
- BamlTreeUpdater.cs
- CommandEventArgs.cs
- TreeView.cs
- UnitySerializationHolder.cs
- LogSwitch.cs
- Size.cs
- ProfileGroupSettingsCollection.cs
- ValueTypeFixupInfo.cs
- COM2ComponentEditor.cs
- IntSumAggregationOperator.cs
- SendMailErrorEventArgs.cs
- WeakRefEnumerator.cs
- ManifestResourceInfo.cs
- OdbcError.cs
- GeometryHitTestResult.cs
- LoginView.cs
- EmptyEnumerable.cs
- OutputCacheSettingsSection.cs
- FacetValueContainer.cs
- SQLDateTimeStorage.cs
- DataGridViewElement.cs
- Tool.cs
- PartialArray.cs
- SiteOfOriginPart.cs
- ClientBuildManagerCallback.cs
- QueryContinueDragEvent.cs
- RayMeshGeometry3DHitTestResult.cs
- ToolStripPanelDesigner.cs
- sqlstateclientmanager.cs
- FindCriteriaApril2005.cs
- FamilyMapCollection.cs
- XmlSchemaSimpleTypeRestriction.cs
- Domain.cs
- BrushValueSerializer.cs
- ZipIOExtraField.cs
- RuleSettings.cs
- SqlInfoMessageEvent.cs
- CodeCompiler.cs
- ThousandthOfEmRealPoints.cs
- ResourceReferenceKeyNotFoundException.cs
- AuthorizationSection.cs
- NumericUpDownAcceleration.cs
- OptimalTextSource.cs
- WebPartZone.cs
- DbConnectionFactory.cs
- GcHandle.cs
- IntPtr.cs
- ListBoxItemAutomationPeer.cs
- KeyMatchBuilder.cs
- latinshape.cs
- WindowsStatusBar.cs
- Configuration.cs
- ColumnTypeConverter.cs
- Timer.cs
- ContentPresenter.cs
- InputScopeManager.cs
- DependencyPropertyKind.cs
- ISFTagAndGuidCache.cs
- VirtualDirectoryMappingCollection.cs
- WhiteSpaceTrimStringConverter.cs
- AvtEvent.cs
- XmlArrayItemAttributes.cs
- QilDataSource.cs
- wpf-etw.cs
- Menu.cs
- HttpInputStream.cs
- AdapterDictionary.cs
- SQLConvert.cs