Code:
/ DotNET / DotNET / 8.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
- BaseParagraph.cs
- LinqDataSourceDeleteEventArgs.cs
- MailWebEventProvider.cs
- NameTable.cs
- Bidi.cs
- OracleDataReader.cs
- Helper.cs
- Validator.cs
- HostedHttpTransportManager.cs
- PageVisual.cs
- EntityException.cs
- DownloadProgressEventArgs.cs
- ConnectionsZone.cs
- DataErrorValidationRule.cs
- ListViewUpdateEventArgs.cs
- COMException.cs
- ImageListDesigner.cs
- PagerSettings.cs
- BamlRecordReader.cs
- JavaScriptObjectDeserializer.cs
- RSAPKCS1KeyExchangeFormatter.cs
- FillRuleValidation.cs
- PixelFormatConverter.cs
- PrintPageEvent.cs
- XmlSchemaSimpleTypeUnion.cs
- GroupBoxAutomationPeer.cs
- CustomSignedXml.cs
- ButtonFieldBase.cs
- PartBasedPackageProperties.cs
- HostingPreferredMapPath.cs
- ResourceDisplayNameAttribute.cs
- InputScopeConverter.cs
- TableLayoutSettingsTypeConverter.cs
- XmlQualifiedName.cs
- XomlCompilerHelpers.cs
- OneOfConst.cs
- EncryptedKey.cs
- DispatcherProcessingDisabled.cs
- LinqDataView.cs
- FormViewPagerRow.cs
- BaseCollection.cs
- Int16Converter.cs
- GuidelineSet.cs
- ToolStripSeparatorRenderEventArgs.cs
- MetadataUtil.cs
- UrlRoutingHandler.cs
- XhtmlBasicImageAdapter.cs
- SelectionHighlightInfo.cs
- DirectoryObjectSecurity.cs
- FrameworkEventSource.cs
- CustomAttributeFormatException.cs
- XslNumber.cs
- CodeActivityContext.cs
- Point3DConverter.cs
- AlternateViewCollection.cs
- VerificationAttribute.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- Calendar.cs
- DataViewSetting.cs
- SecurityKeyIdentifierClause.cs
- glyphs.cs
- PTConverter.cs
- ScrollPattern.cs
- SharedRuntimeState.cs
- SetMemberBinder.cs
- FileLevelControlBuilderAttribute.cs
- StreamReader.cs
- SafeViewOfFileHandle.cs
- Label.cs
- NominalTypeEliminator.cs
- CreateUserWizard.cs
- DataObjectFieldAttribute.cs
- EventProviderBase.cs
- ConversionContext.cs
- RepeaterDesigner.cs
- HttpModulesSection.cs
- _StreamFramer.cs
- ActivityCodeGenerator.cs
- KeyPressEvent.cs
- CharStorage.cs
- ThemeInfoAttribute.cs
- NumberFormatInfo.cs
- Match.cs
- Int32KeyFrameCollection.cs
- ScriptResourceHandler.cs
- Paragraph.cs
- RegisteredScript.cs
- ManifestResourceInfo.cs
- RectIndependentAnimationStorage.cs
- RootBrowserWindowProxy.cs
- XmlMemberMapping.cs
- TraceEventCache.cs
- RSACryptoServiceProvider.cs
- DiscreteKeyFrames.cs
- StyleTypedPropertyAttribute.cs
- TextComposition.cs
- x509utils.cs
- TypeUtils.cs
- StringCollectionMarkupSerializer.cs
- StringValueSerializer.cs