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
- DoubleCollection.cs
- GeneralTransform2DTo3D.cs
- XmlSerializationGeneratedCode.cs
- CodeDelegateInvokeExpression.cs
- XmlDictionaryReader.cs
- Int32Rect.cs
- DiscriminatorMap.cs
- HostedHttpTransportManager.cs
- TransformerConfigurationWizardBase.cs
- HashSetEqualityComparer.cs
- ListSourceHelper.cs
- DefaultPrintController.cs
- InstancePersistenceContext.cs
- ToolStripStatusLabel.cs
- AccessibilityHelperForVista.cs
- FreeFormDesigner.cs
- XmlNodeList.cs
- SubpageParagraph.cs
- ShaderEffect.cs
- Parameter.cs
- RegionInfo.cs
- StringUtil.cs
- FontWeight.cs
- Column.cs
- Rect3D.cs
- MessageSmuggler.cs
- TransformGroup.cs
- TimeoutException.cs
- ServicePoint.cs
- UnicodeEncoding.cs
- LocationUpdates.cs
- ViewStateModeByIdAttribute.cs
- NamespaceQuery.cs
- StateChangeEvent.cs
- ArrayList.cs
- CodeNamespace.cs
- ConstructorNeedsTagAttribute.cs
- X509SecurityTokenProvider.cs
- WaitingCursor.cs
- WebMessageEncoderFactory.cs
- PeerMaintainer.cs
- Resources.Designer.cs
- MissingMethodException.cs
- SqlCommandAsyncResult.cs
- ActiveXSite.cs
- TargetInvocationException.cs
- GeometryCombineModeValidation.cs
- MultiViewDesigner.cs
- FunctionDescription.cs
- TreeNodeCollection.cs
- MasterPageBuildProvider.cs
- NamedPipeTransportBindingElement.cs
- ServicePointManagerElement.cs
- ProfileInfo.cs
- MatrixValueSerializer.cs
- LinkLabelLinkClickedEvent.cs
- WebBrowserDocumentCompletedEventHandler.cs
- BitmapEffectDrawing.cs
- DeviceContext2.cs
- Vector.cs
- WebEventCodes.cs
- EntityContainerEntitySet.cs
- WindowsSysHeader.cs
- DecodeHelper.cs
- Thickness.cs
- ADRoleFactoryConfiguration.cs
- SqlReferenceCollection.cs
- StorageEntityContainerMapping.cs
- PersonalizationProviderCollection.cs
- AssertFilter.cs
- ToolStripStatusLabel.cs
- AutomationElementCollection.cs
- MembershipUser.cs
- LinkConverter.cs
- IdleTimeoutMonitor.cs
- SimpleWorkerRequest.cs
- TypeDescriptionProviderAttribute.cs
- UseAttributeSetsAction.cs
- ClientUtils.cs
- ToolBar.cs
- IOException.cs
- MoveSizeWinEventHandler.cs
- _SSPISessionCache.cs
- WhitespaceRuleLookup.cs
- URLIdentityPermission.cs
- TerminatorSinks.cs
- Duration.cs
- PrivilegeNotHeldException.cs
- Binding.cs
- PropertyManager.cs
- ZoneIdentityPermission.cs
- ToolStripItemEventArgs.cs
- FunctionParameter.cs
- ToolboxComponentsCreatedEventArgs.cs
- OracleTimeSpan.cs
- XPathPatternParser.cs
- ColorAnimation.cs
- SqlDesignerDataSourceView.cs
- HwndSourceParameters.cs
- ObjectConverter.cs