Code:
/ FX-1434 / FX-1434 / 1.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
- Light.cs
- DiagnosticsConfiguration.cs
- BamlTreeMap.cs
- ClientSponsor.cs
- BrowserDefinitionCollection.cs
- SecurityUtils.cs
- DocumentGridPage.cs
- MultiByteCodec.cs
- SoapFormatter.cs
- TableRowCollection.cs
- StateItem.cs
- NotificationContext.cs
- PnrpPermission.cs
- NativeWindow.cs
- CompilerResults.cs
- HttpGetProtocolReflector.cs
- HttpApplication.cs
- TrackingValidationObjectDictionary.cs
- BitmapMetadataEnumerator.cs
- AsyncPostBackTrigger.cs
- SqlProcedureAttribute.cs
- ISessionStateStore.cs
- ByteStack.cs
- BigInt.cs
- ImageConverter.cs
- AttributeCollection.cs
- UITypeEditor.cs
- ExceptionUtil.cs
- EventRecord.cs
- HtmlShimManager.cs
- ChildrenQuery.cs
- DATA_BLOB.cs
- HitTestParameters.cs
- EncoderExceptionFallback.cs
- NotifyCollectionChangedEventArgs.cs
- ComponentSerializationService.cs
- CellRelation.cs
- ByteStack.cs
- Operator.cs
- RefreshEventArgs.cs
- ComNativeDescriptor.cs
- ArgumentException.cs
- Literal.cs
- WebProxyScriptElement.cs
- QilGenerator.cs
- StylusPointPropertyId.cs
- Effect.cs
- NativeMethods.cs
- SecurityContextCookieSerializer.cs
- CodeConstructor.cs
- SymmetricAlgorithm.cs
- ResourceManagerWrapper.cs
- InfiniteTimeSpanConverter.cs
- AxParameterData.cs
- NumberFunctions.cs
- UriExt.cs
- HMACSHA1.cs
- HttpGetProtocolImporter.cs
- Lease.cs
- OleDbConnection.cs
- DbReferenceCollection.cs
- AutomationTextAttribute.cs
- VirtualDirectoryMapping.cs
- MarshalDirectiveException.cs
- Panel.cs
- WindowShowOrOpenTracker.cs
- HebrewCalendar.cs
- GenericUriParser.cs
- ObjectKeyFrameCollection.cs
- ComboBox.cs
- ServiceOperationViewControl.cs
- TokenizerHelper.cs
- Convert.cs
- CompModSwitches.cs
- Vector3DKeyFrameCollection.cs
- PixelShader.cs
- GridViewPageEventArgs.cs
- WindowsFormsSynchronizationContext.cs
- DbDataReader.cs
- ControlSerializer.cs
- InvokeWebServiceDesigner.cs
- UnknownWrapper.cs
- DataGridViewUtilities.cs
- ConfigUtil.cs
- PagerSettings.cs
- NegatedConstant.cs
- AdornerLayer.cs
- NotFiniteNumberException.cs
- ClientSettingsStore.cs
- DbReferenceCollection.cs
- AtomContentProperty.cs
- EventLogPermissionEntryCollection.cs
- XmlSchemaComplexContent.cs
- FaultContractInfo.cs
- Rijndael.cs
- DataSourceGroupCollection.cs
- StyleCollectionEditor.cs
- DefaultHttpHandler.cs
- NavigatorOutput.cs
- TreeNodeConverter.cs