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
- EncoderFallback.cs
- Primitive.cs
- ResourcePermissionBase.cs
- InfoCardAsymmetricCrypto.cs
- BoundField.cs
- ControlBindingsCollection.cs
- DataColumnCollection.cs
- ListenerElementsCollection.cs
- MailMessageEventArgs.cs
- SafeProcessHandle.cs
- GenericsInstances.cs
- HttpServerVarsCollection.cs
- DataRecordObjectView.cs
- GridViewHeaderRowPresenter.cs
- EventMappingSettings.cs
- SqlDependencyListener.cs
- HttpRequestCacheValidator.cs
- ScriptResourceAttribute.cs
- DetailsViewModeEventArgs.cs
- DummyDataSource.cs
- TypeConverter.cs
- WorkflowIdleBehavior.cs
- ValueQuery.cs
- IndexingContentUnit.cs
- EventListenerClientSide.cs
- AxisAngleRotation3D.cs
- ServiceContractGenerator.cs
- __FastResourceComparer.cs
- Transform3DGroup.cs
- DataRelationPropertyDescriptor.cs
- BitmapPalettes.cs
- ObjectParameterCollection.cs
- UpnEndpointIdentity.cs
- SqlDataSourceSummaryPanel.cs
- X509Utils.cs
- VirtualPathUtility.cs
- ADMembershipProvider.cs
- TypeBuilder.cs
- ReadOnlyDataSource.cs
- ImageIndexEditor.cs
- HttpResponseInternalWrapper.cs
- _SSPISessionCache.cs
- _TLSstream.cs
- WebMessageEncodingBindingElement.cs
- SrgsDocument.cs
- SelectionEditingBehavior.cs
- InternalReceiveMessage.cs
- DataGridViewLinkCell.cs
- RulePatternOps.cs
- DataViewManager.cs
- IfAction.cs
- WebPartConnectionCollection.cs
- NativeCppClassAttribute.cs
- TextEditorCopyPaste.cs
- Calendar.cs
- ContainsRowNumberChecker.cs
- CurrentTimeZone.cs
- _SafeNetHandles.cs
- ExpressionParser.cs
- SchemaImporterExtensionElement.cs
- EntityContainerEmitter.cs
- FullTextState.cs
- PresentationTraceSources.cs
- ScrollPattern.cs
- EpmSyndicationContentDeSerializer.cs
- Attachment.cs
- ParameterCollectionEditorForm.cs
- XamlSerializer.cs
- HMACMD5.cs
- CompiledQueryCacheKey.cs
- HttpVersion.cs
- BoundColumn.cs
- UIPropertyMetadata.cs
- Sequence.cs
- IsolatedStorage.cs
- COSERVERINFO.cs
- SqlDataSourceSummaryPanel.cs
- XXXOnTypeBuilderInstantiation.cs
- SchemaImporterExtension.cs
- RoleBoolean.cs
- OleDbCommand.cs
- CompModHelpers.cs
- MenuCommandsChangedEventArgs.cs
- FilterException.cs
- SqlClientPermission.cs
- WCFModelStrings.Designer.cs
- WebPartUtil.cs
- RectKeyFrameCollection.cs
- SliderAutomationPeer.cs
- IConvertible.cs
- CompareValidator.cs
- CodeIdentifier.cs
- GrowingArray.cs
- UnsafeNativeMethods.cs
- EntryPointNotFoundException.cs
- DocumentApplicationJournalEntry.cs
- FrameworkRichTextComposition.cs
- ModuleConfigurationInfo.cs
- ProjectionPathSegment.cs
- ListItemViewAttribute.cs