Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / PropertyGridInternal / PropertiesTab.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XamlPathDataSerializer.cs
- DeviceContext2.cs
- ListBoxItem.cs
- FlowLayout.cs
- CounterSampleCalculator.cs
- validationstate.cs
- DataGridViewBindingCompleteEventArgs.cs
- ScalarConstant.cs
- ManagementDateTime.cs
- SqlVisitor.cs
- WhileDesigner.xaml.cs
- FilterEventArgs.cs
- SqlCacheDependencyDatabase.cs
- TextTreeNode.cs
- HandledEventArgs.cs
- ResolveMatchesCD1.cs
- LabelEditEvent.cs
- Scheduler.cs
- ParameterBinding.cs
- QilSortKey.cs
- ColumnReorderedEventArgs.cs
- CounterCreationDataConverter.cs
- CodeAccessPermission.cs
- BindingListCollectionView.cs
- SecurityChannelFaultConverter.cs
- ThaiBuddhistCalendar.cs
- SubMenuStyleCollection.cs
- SiteMapHierarchicalDataSourceView.cs
- StaticFileHandler.cs
- WeakReferenceEnumerator.cs
- ProjectionAnalyzer.cs
- AssociationType.cs
- DateTimeFormat.cs
- ExceptQueryOperator.cs
- TemplateModeChangedEventArgs.cs
- Pair.cs
- ClientProxyGenerator.cs
- AVElementHelper.cs
- DataControlField.cs
- XmlAttributeProperties.cs
- HostProtectionException.cs
- UmAlQuraCalendar.cs
- ExpressionLexer.cs
- WebPartDisplayModeCancelEventArgs.cs
- BaseValidatorDesigner.cs
- DeviceContexts.cs
- SqlEnums.cs
- SemanticResolver.cs
- SessionPageStatePersister.cs
- GraphicsPath.cs
- DataContractAttribute.cs
- QuadraticBezierSegment.cs
- PathStreamGeometryContext.cs
- DefaultValueAttribute.cs
- XmlSchemaDatatype.cs
- DataColumnCollection.cs
- MailAddressCollection.cs
- WebResourceAttribute.cs
- WebPartZoneBaseDesigner.cs
- CompareValidator.cs
- XslCompiledTransform.cs
- BaseParaClient.cs
- NullableIntMinMaxAggregationOperator.cs
- SiteMapProvider.cs
- ThrowOnMultipleAssignment.cs
- SQLInt64Storage.cs
- MULTI_QI.cs
- Tablet.cs
- WindowsFont.cs
- AuthenticatedStream.cs
- Pkcs7Signer.cs
- SharedConnectionWorkflowTransactionService.cs
- StronglyTypedResourceBuilder.cs
- handlecollector.cs
- SqlOuterApplyReducer.cs
- SamlAssertion.cs
- Menu.cs
- EndpointNotFoundException.cs
- UpdateTranslator.cs
- XmlWriterDelegator.cs
- SoapTypeAttribute.cs
- VolatileEnlistmentMultiplexing.cs
- X509SecurityToken.cs
- TypePropertyEditor.cs
- Int32EqualityComparer.cs
- ObjectPersistData.cs
- PanelStyle.cs
- RuntimeIdentifierPropertyAttribute.cs
- TableCell.cs
- SessionStateUtil.cs
- InfoCardAsymmetricCrypto.cs
- OrderedDictionary.cs
- NativeCppClassAttribute.cs
- BaseTemplateCodeDomTreeGenerator.cs
- AncillaryOps.cs
- TextSelectionProcessor.cs
- NumericUpDownAcceleration.cs
- ListCollectionView.cs
- DataGridLinkButton.cs
- HiddenFieldPageStatePersister.cs