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
- PlatformCulture.cs
- StylusPointCollection.cs
- DocumentGrid.cs
- SoapSchemaMember.cs
- NominalTypeEliminator.cs
- CultureInfoConverter.cs
- OutputWindow.cs
- WebPartDescriptionCollection.cs
- MembershipSection.cs
- PackWebRequestFactory.cs
- ErrorInfoXmlDocument.cs
- SpecialTypeDataContract.cs
- PanelContainerDesigner.cs
- ZipIOCentralDirectoryFileHeader.cs
- XmlHierarchicalEnumerable.cs
- DataBindingHandlerAttribute.cs
- FileDialog.cs
- DataGridViewColumnTypePicker.cs
- SelectionRangeConverter.cs
- LayoutInformation.cs
- DataGridViewButtonColumn.cs
- EdmFunction.cs
- ListBindingConverter.cs
- LogExtentCollection.cs
- ChangeNode.cs
- GenericEnumerator.cs
- SystemPens.cs
- DeclarationUpdate.cs
- ReservationCollection.cs
- PointKeyFrameCollection.cs
- SettingsAttributeDictionary.cs
- WebHttpDispatchOperationSelector.cs
- SQLResource.cs
- SwitchCase.cs
- DataGridViewRowStateChangedEventArgs.cs
- FileDialog_Vista_Interop.cs
- MaterialGroup.cs
- DocumentEventArgs.cs
- ContentElement.cs
- EmptyEnumerator.cs
- SoapUnknownHeader.cs
- MenuItemStyle.cs
- JsonStringDataContract.cs
- EventLogEntryCollection.cs
- Brushes.cs
- DbProviderServices.cs
- Header.cs
- ToolBar.cs
- SoundPlayer.cs
- ExpandCollapsePattern.cs
- AxisAngleRotation3D.cs
- MaskedTextBox.cs
- PenLineJoinValidation.cs
- DocumentCollection.cs
- ImageInfo.cs
- MessageHeader.cs
- PenThreadWorker.cs
- FormattedText.cs
- OdbcCommand.cs
- serverconfig.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- SafeNativeMethods.cs
- OdbcCommand.cs
- Misc.cs
- ProfilePropertySettings.cs
- TraceFilter.cs
- PageSetupDialog.cs
- Substitution.cs
- EnumerationRangeValidationUtil.cs
- DataObjectEventArgs.cs
- SQLBoolean.cs
- Compiler.cs
- DataListItem.cs
- hresults.cs
- CodeParameterDeclarationExpression.cs
- TypeConverterHelper.cs
- StoragePropertyMapping.cs
- BitmapEffectInput.cs
- HtmlProps.cs
- CorePropertiesFilter.cs
- SecurityContext.cs
- StorageFunctionMapping.cs
- SqlConnectionFactory.cs
- PathGeometry.cs
- DbModificationClause.cs
- SapiGrammar.cs
- PropertyStore.cs
- ResourceProperty.cs
- TextBlock.cs
- HttpWebResponse.cs
- TextTreeNode.cs
- InfoCardTrace.cs
- AuthenticateEventArgs.cs
- StyleCollection.cs
- SpellerHighlightLayer.cs
- ChangeProcessor.cs
- LinkedResource.cs
- RootBrowserWindowProxy.cs
- BinHexDecoder.cs
- CustomExpression.cs