Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / PropertyGridInternal / PropertiesTab.cs / 1305376 / PropertiesTab.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms.PropertyGridInternal { using System.Runtime.InteropServices; using System.Diagnostics; using System; using System.ComponentModel.Design; using System.ComponentModel; using System.Windows.Forms.ComponentModel; using System.Windows.Forms.Design; using System.Collections; using Microsoft.Win32; ////// /// [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] public class PropertiesTab : PropertyTab { ///[To be supplied.] ////// /// public override string TabName { get { return SR.GetString(SR.PBRSToolTipProperties); } } ///[To be supplied.] ////// /// public override string HelpKeyword { get { return "vs.properties"; // do not localize. } } ///[To be supplied.] ////// /// public override PropertyDescriptor GetDefaultProperty(object obj) { PropertyDescriptor def = base.GetDefaultProperty(obj); if (def == null) { PropertyDescriptorCollection props = GetProperties(obj); if (props != null) { for (int i = 0; i < props.Count; i++) { if ("Name".Equals(props[i].Name)) { def = props[i]; break; } } } } return def; } ///[To be supplied.] ////// /// public override PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes) { return GetProperties(null, component, attributes); } ///[To be supplied.] ////// /// public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object component, Attribute[] attributes) { if (attributes == null) { attributes = new Attribute[]{BrowsableAttribute.Yes}; } if (context == null) { return TypeDescriptor.GetProperties(component, attributes); } else { TypeConverter tc = (context.PropertyDescriptor == null ? TypeDescriptor.GetConverter(component) : context.PropertyDescriptor.Converter); if (tc == null || !tc.GetPropertiesSupported(context)) { return TypeDescriptor.GetProperties(component, attributes); } else { return tc.GetProperties(context, component, attributes); } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InsufficientMemoryException.cs
- CodeCommentStatementCollection.cs
- RouteCollection.cs
- HostingPreferredMapPath.cs
- GenericWebPart.cs
- WebControlParameterProxy.cs
- pingexception.cs
- XPathDocumentIterator.cs
- ItemContainerGenerator.cs
- ThemeDirectoryCompiler.cs
- SelectionItemProviderWrapper.cs
- Random.cs
- RuntimeWrappedException.cs
- SqlClientPermission.cs
- ProviderMetadataCachedInformation.cs
- WebPartsPersonalizationAuthorization.cs
- VirtualDirectoryMapping.cs
- LambdaCompiler.cs
- FunctionMappingTranslator.cs
- TemplateXamlTreeBuilder.cs
- FrameworkElement.cs
- ZipIOLocalFileBlock.cs
- DataGridBoolColumn.cs
- Descriptor.cs
- RangeValidator.cs
- SafeFileHandle.cs
- CorrelationResolver.cs
- BamlTreeUpdater.cs
- infer.cs
- EntityContainerEntitySetDefiningQuery.cs
- TemplateBindingExpressionConverter.cs
- ImageListImage.cs
- Selector.cs
- ButtonBaseAdapter.cs
- WindowsAuthenticationModule.cs
- Sentence.cs
- Transform.cs
- RequestQueue.cs
- StringResourceManager.cs
- VisualStyleRenderer.cs
- EdmComplexPropertyAttribute.cs
- Queue.cs
- Cursor.cs
- AbstractSvcMapFileLoader.cs
- COM2ExtendedTypeConverter.cs
- UserNameSecurityToken.cs
- UserControlAutomationPeer.cs
- SoapIncludeAttribute.cs
- SqlCommand.cs
- FrameworkTemplate.cs
- EFDataModelProvider.cs
- ObjectDisposedException.cs
- XmlWrappingReader.cs
- PixelShader.cs
- AncestorChangedEventArgs.cs
- WebExceptionStatus.cs
- DataGridViewTextBoxEditingControl.cs
- HttpCacheParams.cs
- HeaderFilter.cs
- SoapCodeExporter.cs
- ConfigXmlElement.cs
- ComEventsInfo.cs
- shaperfactoryquerycacheentry.cs
- ClientSession.cs
- ActivitySurrogateSelector.cs
- DiscreteKeyFrames.cs
- XsltLibrary.cs
- ObjectNavigationPropertyMapping.cs
- Compilation.cs
- CodeExporter.cs
- SmiMetaData.cs
- CatalogZone.cs
- PrincipalPermission.cs
- XmlNodeChangedEventManager.cs
- RequestCacheValidator.cs
- XmlText.cs
- HttpGetServerProtocol.cs
- StorageInfo.cs
- AdapterUtil.cs
- ButtonFlatAdapter.cs
- LogicalCallContext.cs
- StyleSelector.cs
- DBSchemaTable.cs
- VisualStyleInformation.cs
- ConfigurationLocationCollection.cs
- SourceFileBuildProvider.cs
- SiteOfOriginPart.cs
- AccessedThroughPropertyAttribute.cs
- QueryOutputWriterV1.cs
- activationcontext.cs
- SingleAnimation.cs
- BindingCompleteEventArgs.cs
- InstanceData.cs
- Closure.cs
- baseaxisquery.cs
- ICspAsymmetricAlgorithm.cs
- ComponentResourceManager.cs
- ObjectFullSpanRewriter.cs
- DbXmlEnabledProviderManifest.cs
- ElementMarkupObject.cs