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
- AccessedThroughPropertyAttribute.cs
- SeverityFilter.cs
- EntityDesignerUtils.cs
- WebPartDeleteVerb.cs
- MenuItemStyleCollection.cs
- InkPresenterAutomationPeer.cs
- ByteConverter.cs
- WebHttpDispatchOperationSelector.cs
- QueryOptionExpression.cs
- WebPartZoneCollection.cs
- WindowCollection.cs
- FormConverter.cs
- HttpServerUtilityWrapper.cs
- DemultiplexingClientMessageFormatter.cs
- XmlSchemaInfo.cs
- BooleanProjectedSlot.cs
- SerializableAttribute.cs
- TagMapInfo.cs
- FigureHelper.cs
- ListViewPagedDataSource.cs
- HtmlFormWrapper.cs
- OdbcCommandBuilder.cs
- SqlDataSourceView.cs
- Pts.cs
- ReadOnlyHierarchicalDataSource.cs
- Bezier.cs
- MissingMethodException.cs
- FixedDocument.cs
- Parameter.cs
- BuildResult.cs
- CreationContext.cs
- webproxy.cs
- SingleConverter.cs
- Section.cs
- StylusCollection.cs
- QilParameter.cs
- BamlCollectionHolder.cs
- TraceListener.cs
- MailDefinition.cs
- EntityDataSourceSelectedEventArgs.cs
- XmlImplementation.cs
- Rectangle.cs
- RelOps.cs
- ToolStripDropDownClosedEventArgs.cs
- ContractSearchPattern.cs
- TemplateParser.cs
- MatrixConverter.cs
- ListViewUpdatedEventArgs.cs
- QuaternionValueSerializer.cs
- CustomSignedXml.cs
- TreeBuilder.cs
- SizeLimitedCache.cs
- SerializationAttributes.cs
- ManipulationCompletedEventArgs.cs
- UniqueTransportManagerRegistration.cs
- SchemaNamespaceManager.cs
- VariableAction.cs
- ResXResourceSet.cs
- CalendarDayButton.cs
- AssemblyHash.cs
- XpsPackagingPolicy.cs
- SafeCryptContextHandle.cs
- EmissiveMaterial.cs
- TextParaLineResult.cs
- SqlTriggerContext.cs
- Funcletizer.cs
- XLinq.cs
- LineServicesRun.cs
- SecurityException.cs
- ClientSettingsStore.cs
- SmiTypedGetterSetter.cs
- Comparer.cs
- PageAsyncTask.cs
- FirstQueryOperator.cs
- LZCodec.cs
- InvalidCardException.cs
- PageThemeBuildProvider.cs
- DoubleAnimationUsingPath.cs
- FrameworkPropertyMetadata.cs
- OracleCommand.cs
- GroupItemAutomationPeer.cs
- InputReport.cs
- SchemaImporter.cs
- PeerObject.cs
- ParameterModifier.cs
- TreeWalkHelper.cs
- XmlResolver.cs
- XmlDocumentFragment.cs
- PathSegmentCollection.cs
- BrushProxy.cs
- SafeEventHandle.cs
- DbConnectionPoolGroupProviderInfo.cs
- ExpandedWrapper.cs
- SplitterCancelEvent.cs
- SoapSchemaMember.cs
- TextureBrush.cs
- SafeSystemMetrics.cs
- TableCell.cs
- TypedAsyncResult.cs
- ExceptionHandlers.cs