Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / WinCategoryAttribute.cs / 1 / WinCategoryAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; ////// /// /// [AttributeUsage(AttributeTargets.All)] internal sealed class WinCategoryAttribute : CategoryAttribute { ////// CategoryAttribute that can access WinForms localized strings. /// ////// /// public WinCategoryAttribute(string category) : base(category) { } ////// Initializes a new instance of the ///class. /// /// /// This method is called the first time the category property /// is accessed. It provides a way to lookup a localized string for /// the given category. Classes may override this to add their /// own localized names to categories. If a localized string is /// available for the given value, the method should return it. /// Otherwise, it should return null. /// protected override string GetLocalizedString(string value) { string localizedValue = base.GetLocalizedString(value); if (localizedValue == null) { localizedValue = (string)SR.GetObject("WinFormsCategory" + value); } // This attribute is internal, and we should never have a missing resource string. // Debug.Assert(localizedValue != null, "All Windows Forms category attributes should have localized strings. Category '" + value + "' not found."); return localizedValue; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Registry.cs
- Point3D.cs
- TableCellCollection.cs
- safesecurityhelperavalon.cs
- GradientSpreadMethodValidation.cs
- PreviewPageInfo.cs
- ConfigDefinitionUpdates.cs
- BuildResult.cs
- WebPartDescriptionCollection.cs
- IdnMapping.cs
- EnumerableCollectionView.cs
- ToolStripStatusLabel.cs
- ScriptBehaviorDescriptor.cs
- SafeBitVector32.cs
- Brushes.cs
- AssemblyNameProxy.cs
- SecureStringHasher.cs
- ConstraintCollection.cs
- CheckBoxDesigner.cs
- DataSourceXmlTextReader.cs
- SurrogateDataContract.cs
- BitVector32.cs
- BitmapEffectGroup.cs
- SHA512Managed.cs
- MemoryFailPoint.cs
- OAVariantLib.cs
- DESCryptoServiceProvider.cs
- ExpressionWriter.cs
- WebPartConnectionsDisconnectVerb.cs
- HostingEnvironmentWrapper.cs
- DataGridCheckBoxColumn.cs
- DataTablePropertyDescriptor.cs
- Button.cs
- TextServicesLoader.cs
- ObjectIDGenerator.cs
- BufferedGraphicsManager.cs
- SpecialFolderEnumConverter.cs
- ScriptingAuthenticationServiceSection.cs
- AssemblyFilter.cs
- DataTrigger.cs
- TransactedBatchingBehavior.cs
- Stack.cs
- CFStream.cs
- __Filters.cs
- Style.cs
- PlanCompilerUtil.cs
- SurrogateChar.cs
- StrongNameUtility.cs
- Activity.cs
- Stack.cs
- WorkflowInspectionServices.cs
- StringArrayConverter.cs
- ChannelBinding.cs
- StringBlob.cs
- Type.cs
- ConnectionManagementSection.cs
- XmlNodeChangedEventManager.cs
- DATA_BLOB.cs
- FilteredReadOnlyMetadataCollection.cs
- ReaderWriterLockSlim.cs
- ClientConvert.cs
- NetCodeGroup.cs
- TimeManager.cs
- _Win32.cs
- AuthenticateEventArgs.cs
- PtsHelper.cs
- Recipient.cs
- DataGridViewIntLinkedList.cs
- JumpTask.cs
- IsolationInterop.cs
- CodeExporter.cs
- InputMethod.cs
- PhysicalAddress.cs
- CannotUnloadAppDomainException.cs
- MdImport.cs
- DataGridTableCollection.cs
- SafeProcessHandle.cs
- ApplicationServiceHelper.cs
- UnhandledExceptionEventArgs.cs
- SqlMethodTransformer.cs
- TextAdaptor.cs
- SiteMapNode.cs
- ProviderConnectionPointCollection.cs
- ScriptHandlerFactory.cs
- VerificationAttribute.cs
- LeaseManager.cs
- tooltip.cs
- counter.cs
- Debug.cs
- ReflectEventDescriptor.cs
- TagPrefixAttribute.cs
- CollectionDataContractAttribute.cs
- SharedPersonalizationStateInfo.cs
- XamlUtilities.cs
- QuaternionRotation3D.cs
- FormsAuthenticationUserCollection.cs
- SynchronizedDispatch.cs
- DropSource.cs
- BufferModesCollection.cs
- AsynchronousChannel.cs