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
- ResourceFallbackManager.cs
- DataGridViewCellCancelEventArgs.cs
- XmlObjectSerializerReadContextComplex.cs
- TextFormatter.cs
- WsatServiceCertificate.cs
- TabControlToolboxItem.cs
- WorkflowOwnerAsyncResult.cs
- StrokeNode.cs
- NativeMethodsCLR.cs
- AmbientProperties.cs
- XPathMessageFilter.cs
- PresentationAppDomainManager.cs
- DataServiceSaveChangesEventArgs.cs
- DuplexClientBase.cs
- ProfileService.cs
- ImageDrawing.cs
- DecodeHelper.cs
- CompositionTarget.cs
- FixedSOMFixedBlock.cs
- ScrollPattern.cs
- WizardStepBase.cs
- TemplatedEditableDesignerRegion.cs
- TraceHandler.cs
- SoapIncludeAttribute.cs
- BindingContext.cs
- NotificationContext.cs
- AnnotationObservableCollection.cs
- CompareValidator.cs
- BinHexDecoder.cs
- RepeaterItemCollection.cs
- CapiHashAlgorithm.cs
- VirtualizingStackPanel.cs
- MenuItem.cs
- SafeBitVector32.cs
- GeneratedContractType.cs
- TableRowGroup.cs
- ConfigsHelper.cs
- FastEncoder.cs
- NumberFunctions.cs
- DetailsViewUpdateEventArgs.cs
- TimelineCollection.cs
- ModelFactory.cs
- TextComposition.cs
- VisualCollection.cs
- BinaryConverter.cs
- ByteAnimation.cs
- LostFocusEventManager.cs
- CanonicalFontFamilyReference.cs
- MgmtConfigurationRecord.cs
- JavaScriptSerializer.cs
- ConfigXmlDocument.cs
- HitTestWithPointDrawingContextWalker.cs
- Matrix3DStack.cs
- UserControlDocumentDesigner.cs
- _LazyAsyncResult.cs
- MappingException.cs
- RuleSetDialog.Designer.cs
- ISCIIEncoding.cs
- StringComparer.cs
- ShellProvider.cs
- CustomAssemblyResolver.cs
- XmlSignatureManifest.cs
- TextEditorMouse.cs
- XmlIlTypeHelper.cs
- FilterElement.cs
- HtmlLink.cs
- IndexerNameAttribute.cs
- AnimationException.cs
- DataServiceQueryProvider.cs
- QueueTransferProtocol.cs
- AttributeQuery.cs
- TextEditorParagraphs.cs
- ThreadAbortException.cs
- PrintingPermissionAttribute.cs
- PeerResolver.cs
- CredentialCache.cs
- MetadataArtifactLoaderFile.cs
- IdnMapping.cs
- PageThemeBuildProvider.cs
- PrintDialog.cs
- DesignerProperties.cs
- SafeNativeMethods.cs
- Logging.cs
- TreeViewTemplateSelector.cs
- Scanner.cs
- DesignBinding.cs
- DefaultShape.cs
- SqlProviderManifest.cs
- EntityClassGenerator.cs
- StateWorkerRequest.cs
- AnyAllSearchOperator.cs
- ConfigXmlText.cs
- WriteableBitmap.cs
- MaskedTextProvider.cs
- ClientSession.cs
- Image.cs
- BufferBuilder.cs
- Stroke.cs
- GeometryConverter.cs
- OleDbReferenceCollection.cs