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
- XmlSerializerSection.cs
- WebPartCancelEventArgs.cs
- Random.cs
- ByteStream.cs
- WebPartConnectionsCancelEventArgs.cs
- UncommonField.cs
- XamlPointCollectionSerializer.cs
- EditorPart.cs
- UInt64Storage.cs
- _DigestClient.cs
- HtmlShim.cs
- ConstraintConverter.cs
- SoapSchemaExporter.cs
- EncoderParameters.cs
- MatrixAnimationUsingKeyFrames.cs
- XmlQualifiedName.cs
- CompilerGeneratedAttribute.cs
- CollectionViewGroupInternal.cs
- CapabilitiesSection.cs
- Point3DCollectionValueSerializer.cs
- VisualStyleTypesAndProperties.cs
- InvalidContentTypeException.cs
- ComboBoxAutomationPeer.cs
- EnterpriseServicesHelper.cs
- SessionStateSection.cs
- WindowsPen.cs
- XmlQueryTypeFactory.cs
- PipelineDeploymentState.cs
- BrowserCapabilitiesCodeGenerator.cs
- SqlDependencyUtils.cs
- ValidatedMobileControlConverter.cs
- TdsParserSessionPool.cs
- NetworkInformationException.cs
- RuleProcessor.cs
- ConnectivityStatus.cs
- SimpleTextLine.cs
- PropertyConverter.cs
- EmptyImpersonationContext.cs
- QueryStringParameter.cs
- GridItem.cs
- ProxyWebPartConnectionCollection.cs
- ProfileBuildProvider.cs
- PropertySourceInfo.cs
- ProjectedSlot.cs
- ImageDrawing.cs
- SecurityElement.cs
- SoapTypeAttribute.cs
- Brush.cs
- ExpressionEditorAttribute.cs
- NetworkCredential.cs
- AggregateNode.cs
- ListView.cs
- HtmlInputButton.cs
- SyndicationElementExtension.cs
- MouseDevice.cs
- SimplePropertyEntry.cs
- StateMachine.cs
- CreateUserErrorEventArgs.cs
- WindowsFormsHostPropertyMap.cs
- ChangeTracker.cs
- ChannelManagerHelpers.cs
- CodeParameterDeclarationExpressionCollection.cs
- FixedSOMTable.cs
- XmlSchemaSimpleTypeList.cs
- FixedSOMContainer.cs
- Nodes.cs
- BindingsCollection.cs
- Timer.cs
- Axis.cs
- ListViewUpdatedEventArgs.cs
- Menu.cs
- HtmlPageAdapter.cs
- ScriptManagerProxy.cs
- Storyboard.cs
- IgnoreFlushAndCloseStream.cs
- CodePageUtils.cs
- InfoCardAsymmetricCrypto.cs
- XsdDuration.cs
- base64Transforms.cs
- Attachment.cs
- EntityContainerRelationshipSetEnd.cs
- WpfPayload.cs
- AssociationTypeEmitter.cs
- SQLMembershipProvider.cs
- RuleSettingsCollection.cs
- FormsAuthenticationModule.cs
- EntitySqlQueryBuilder.cs
- ServicePointManagerElement.cs
- UserNameSecurityToken.cs
- CacheHelper.cs
- Environment.cs
- HiddenFieldPageStatePersister.cs
- WebPartConnectionsEventArgs.cs
- ParserHooks.cs
- NavigationPropertyEmitter.cs
- ContentType.cs
- XComponentModel.cs
- MetadataItemEmitter.cs
- AuthStoreRoleProvider.cs
- MarkedHighlightComponent.cs