Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / WinCategoryAttribute.cs / 1305376 / 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 [....] 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectDataSource.cs
- Menu.cs
- TableRowGroup.cs
- DataServiceConfiguration.cs
- BamlRecordWriter.cs
- XPathAncestorIterator.cs
- ObjectDataSource.cs
- AddInIpcChannel.cs
- DrawingBrush.cs
- WebServiceClientProxyGenerator.cs
- DataGridViewUtilities.cs
- TrackBarRenderer.cs
- BlobPersonalizationState.cs
- SharingService.cs
- ThrowHelper.cs
- DrawTreeNodeEventArgs.cs
- SrgsItemList.cs
- CancelRequestedRecord.cs
- XmlObjectSerializerReadContextComplexJson.cs
- TaskFactory.cs
- x509store.cs
- ArraySortHelper.cs
- SevenBitStream.cs
- MenuItemAutomationPeer.cs
- Empty.cs
- loginstatus.cs
- UserNameSecurityTokenAuthenticator.cs
- TraceContextEventArgs.cs
- FontInfo.cs
- BamlReader.cs
- LineBreak.cs
- Cloud.cs
- DataGridViewCellLinkedList.cs
- BuilderPropertyEntry.cs
- LayoutManager.cs
- EntityCommand.cs
- Scripts.cs
- ValidationErrorEventArgs.cs
- DrawingAttributeSerializer.cs
- Win32MouseDevice.cs
- AccessViolationException.cs
- TextElement.cs
- TaskFactory.cs
- ThreadWorkerController.cs
- LabelEditEvent.cs
- Timeline.cs
- PropertyEmitter.cs
- TokenizerHelper.cs
- XpsColorContext.cs
- BaseCodePageEncoding.cs
- XmlTextReader.cs
- EventlogProvider.cs
- FtpCachePolicyElement.cs
- FragmentQueryProcessor.cs
- WebPartEditVerb.cs
- SystemFonts.cs
- DecoderNLS.cs
- DataSourceProvider.cs
- PlanCompiler.cs
- Point3DAnimationBase.cs
- AttributeEmitter.cs
- LayoutDump.cs
- SettingsPropertyCollection.cs
- SecurityTokenException.cs
- BindingNavigator.cs
- SystemWebSectionGroup.cs
- RadioButtonRenderer.cs
- DataGridCellsPanel.cs
- TextTreeText.cs
- TypeValidationEventArgs.cs
- C14NUtil.cs
- TreeViewImageIndexConverter.cs
- CssTextWriter.cs
- Currency.cs
- LogArchiveSnapshot.cs
- FileLogRecordHeader.cs
- XmlSchemaObject.cs
- TypeNameConverter.cs
- ObjectDataSourceEventArgs.cs
- basenumberconverter.cs
- FormsAuthentication.cs
- IPHostEntry.cs
- KeyFrames.cs
- GC.cs
- SafeSecurityHandles.cs
- Assert.cs
- InstanceKeyView.cs
- TextAdaptor.cs
- TrackBarRenderer.cs
- Trace.cs
- FaultBookmark.cs
- DbConnectionPoolOptions.cs
- PrintPreviewDialog.cs
- DataKeyCollection.cs
- MexHttpBindingCollectionElement.cs
- TimeEnumHelper.cs
- RemotingHelper.cs
- DebugController.cs
- MulticastDelegate.cs
- SingleAnimation.cs