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
- CommandLibraryHelper.cs
- SoapDocumentServiceAttribute.cs
- UnsafeNativeMethods.cs
- DataGridHeaderBorder.cs
- EncodingNLS.cs
- ConfigurationManager.cs
- Stacktrace.cs
- TraceContext.cs
- HealthMonitoringSection.cs
- ChildrenQuery.cs
- NavigationFailedEventArgs.cs
- TemplatedMailWebEventProvider.cs
- NamespaceEmitter.cs
- TimeSpan.cs
- ContextStaticAttribute.cs
- XmlAutoDetectWriter.cs
- MenuCommands.cs
- TreeSet.cs
- QueryStringParameter.cs
- ToolStripProgressBar.cs
- Listbox.cs
- ObjectDataSourceDisposingEventArgs.cs
- XmlComment.cs
- RelationshipNavigation.cs
- DataGridViewCellStyleConverter.cs
- ClientTargetSection.cs
- SyncOperationState.cs
- TagMapCollection.cs
- XPathParser.cs
- ByteAnimation.cs
- ParsedRoute.cs
- HttpWriter.cs
- SqlRowUpdatedEvent.cs
- TypeNameConverter.cs
- ParseHttpDate.cs
- ConfigurationSectionGroup.cs
- BrushMappingModeValidation.cs
- SqlStatistics.cs
- FilteredReadOnlyMetadataCollection.cs
- SymmetricKeyWrap.cs
- TextEditorSpelling.cs
- AsyncOperation.cs
- ContractNamespaceAttribute.cs
- DataComponentNameHandler.cs
- QueueProcessor.cs
- XmlQueryRuntime.cs
- WebPartAuthorizationEventArgs.cs
- StringConverter.cs
- DataExpression.cs
- EnumerableValidator.cs
- DataListDesigner.cs
- CopyAttributesAction.cs
- OdbcDataReader.cs
- X509Utils.cs
- XmlAttributeCache.cs
- JsonFaultDetail.cs
- StyleBamlRecordReader.cs
- InOutArgument.cs
- Renderer.cs
- ECDsaCng.cs
- StrokeCollectionDefaultValueFactory.cs
- GCHandleCookieTable.cs
- ToolStripItemTextRenderEventArgs.cs
- RelationshipEndCollection.cs
- TranslateTransform.cs
- Material.cs
- ActivityBuilderHelper.cs
- AssemblyEvidenceFactory.cs
- BlockCollection.cs
- QilInvoke.cs
- BitmapEffectInput.cs
- ThemeableAttribute.cs
- OrderPreservingMergeHelper.cs
- PngBitmapDecoder.cs
- safelink.cs
- BaseInfoTable.cs
- LicFileLicenseProvider.cs
- SerializationObjectManager.cs
- Win32Exception.cs
- _NetworkingPerfCounters.cs
- EventDescriptor.cs
- Group.cs
- UserControl.cs
- PointValueSerializer.cs
- Comparer.cs
- DeobfuscatingStream.cs
- ContentType.cs
- Unit.cs
- UnsafeNativeMethodsTablet.cs
- ScrollViewerAutomationPeer.cs
- FilterException.cs
- Rotation3DAnimation.cs
- MobileUITypeEditor.cs
- _SslSessionsCache.cs
- HasActivatableWorkflowEvent.cs
- AutomationElement.cs
- GeneralTransform2DTo3DTo2D.cs
- Win32Exception.cs
- Double.cs
- ZipPackagePart.cs