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
- Enum.cs
- ThreadInterruptedException.cs
- SymbolType.cs
- TagPrefixInfo.cs
- FileEnumerator.cs
- DataControlImageButton.cs
- CorePropertiesFilter.cs
- BlobPersonalizationState.cs
- ListViewItem.cs
- MethodInfo.cs
- MimeXmlReflector.cs
- SoapInteropTypes.cs
- Token.cs
- ActiveXContainer.cs
- AttachedPropertyInfo.cs
- AutomationElementCollection.cs
- CommandBinding.cs
- columnmapkeybuilder.cs
- FormsAuthentication.cs
- EntityReference.cs
- LayoutUtils.cs
- WorkflowInstanceProvider.cs
- EmbeddedObject.cs
- recordstatescratchpad.cs
- cryptoapiTransform.cs
- Trigger.cs
- BaseInfoTable.cs
- EdmFunction.cs
- GenericWebPart.cs
- MetaChildrenColumn.cs
- TemplateManager.cs
- TraceFilter.cs
- DirectionalLight.cs
- CompilerTypeWithParams.cs
- RuntimeConfig.cs
- WCFModelStrings.Designer.cs
- InternalException.cs
- SafeMILHandle.cs
- PenThread.cs
- Site.cs
- ColumnMapTranslator.cs
- TreeNodeConverter.cs
- DataGridViewCellCancelEventArgs.cs
- ByteAnimationUsingKeyFrames.cs
- FunctionMappingTranslator.cs
- CdpEqualityComparer.cs
- TemplateBindingExtensionConverter.cs
- StaticFileHandler.cs
- SingleObjectCollection.cs
- XamlDebuggerXmlReader.cs
- LongPath.cs
- EntityDataSourceWizardForm.cs
- PixelFormats.cs
- MouseEventArgs.cs
- DynamicUpdateCommand.cs
- StrongName.cs
- Helper.cs
- WebBrowserEvent.cs
- XmlSecureResolver.cs
- DynamicValidatorEventArgs.cs
- EventSourceCreationData.cs
- ModelItem.cs
- ListViewInsertionMark.cs
- TypeLoadException.cs
- ReturnType.cs
- SequenceFullException.cs
- CodeAttributeDeclaration.cs
- DynamicFilterExpression.cs
- ToolStripPanelRenderEventArgs.cs
- ClientTargetSection.cs
- DataMemberFieldEditor.cs
- RecordConverter.cs
- GridProviderWrapper.cs
- CorrelationTokenTypeConvertor.cs
- FactoryMaker.cs
- SecUtil.cs
- DataStorage.cs
- ReachPageContentSerializerAsync.cs
- EvidenceBase.cs
- PropertyDescriptorGridEntry.cs
- DesignerLoader.cs
- _DisconnectOverlappedAsyncResult.cs
- CompositeFontFamily.cs
- WebControlToolBoxItem.cs
- SHA512Cng.cs
- XmlCharCheckingReader.cs
- DataPointer.cs
- BindingExpressionBase.cs
- OdbcParameter.cs
- iisPickupDirectory.cs
- SubclassTypeValidatorAttribute.cs
- DependencyObject.cs
- AutomationPatternInfo.cs
- JsonSerializer.cs
- SqlUtils.cs
- AppDomainEvidenceFactory.cs
- Rules.cs
- IDQuery.cs
- EventProperty.cs
- Logging.cs