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
- DomainConstraint.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- Translator.cs
- UInt32.cs
- DescriptionAttribute.cs
- EndCreateSecurityTokenRequest.cs
- TrackBarRenderer.cs
- SiteMapPath.cs
- Exception.cs
- SchemaNamespaceManager.cs
- DebugInfoExpression.cs
- GifBitmapEncoder.cs
- JsonEncodingStreamWrapper.cs
- ListControlConvertEventArgs.cs
- DocobjHost.cs
- DetailsViewUpdatedEventArgs.cs
- glyphs.cs
- PointConverter.cs
- WpfSharedBamlSchemaContext.cs
- NodeFunctions.cs
- DataGridToolTip.cs
- PolicyChain.cs
- FrameworkContextData.cs
- DecimalFormatter.cs
- querybuilder.cs
- UnsafeNativeMethods.cs
- BaseValidator.cs
- StrongNamePublicKeyBlob.cs
- TrackingStringDictionary.cs
- RepeaterItemCollection.cs
- RegexFCD.cs
- TextTreeFixupNode.cs
- StrokeSerializer.cs
- ScrollEventArgs.cs
- ConfigurationManagerHelperFactory.cs
- WinEventQueueItem.cs
- ComboBoxRenderer.cs
- ProcessHostServerConfig.cs
- CommandID.cs
- ClientConfigurationHost.cs
- TextMarkerSource.cs
- XPathDocumentNavigator.cs
- CollectionEditor.cs
- TrackingConditionCollection.cs
- KnownAssemblyEntry.cs
- SectionVisual.cs
- XmlEncoding.cs
- PrincipalPermissionMode.cs
- WorkflowViewManager.cs
- AspNetHostingPermission.cs
- ServiceHttpModule.cs
- ValidationPropertyAttribute.cs
- HwndHost.cs
- Rule.cs
- ImageAnimator.cs
- EventRouteFactory.cs
- BitmapPalette.cs
- Source.cs
- DataTable.cs
- WebPartConnectionsEventArgs.cs
- CompositeDuplexBindingElementImporter.cs
- TableLayoutColumnStyleCollection.cs
- Range.cs
- RelationshipManager.cs
- ComUdtElement.cs
- CheckBox.cs
- WpfKnownType.cs
- GridViewRowEventArgs.cs
- AnnotationAuthorChangedEventArgs.cs
- TextServicesCompartmentEventSink.cs
- FlowDocumentReaderAutomationPeer.cs
- FieldMetadata.cs
- BackgroundWorker.cs
- Italic.cs
- XmlNavigatorFilter.cs
- SkinBuilder.cs
- BuildProviderCollection.cs
- XmlCodeExporter.cs
- UrlPath.cs
- ManagementBaseObject.cs
- EventHandlerList.cs
- ItemCheckedEvent.cs
- SingleAnimationBase.cs
- VBIdentifierDesigner.xaml.cs
- CapabilitiesUse.cs
- __Error.cs
- DataGridViewRowPostPaintEventArgs.cs
- Glyph.cs
- ToolStripGrip.cs
- infer.cs
- ItemChangedEventArgs.cs
- MediaElementAutomationPeer.cs
- Control.cs
- ArglessEventHandlerProxy.cs
- RuntimeHandles.cs
- SchemaLookupTable.cs
- ToolStripSystemRenderer.cs
- WindowInteractionStateTracker.cs
- ServiceManager.cs
- DataGridViewCell.cs