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
- WebPartCollection.cs
- ClipboardData.cs
- SiteMapSection.cs
- EntityContainer.cs
- QueueProcessor.cs
- DoWhileDesigner.xaml.cs
- DataObject.cs
- TemplateBindingExpression.cs
- MailWebEventProvider.cs
- HttpModulesSection.cs
- UIElementHelper.cs
- XmlHierarchyData.cs
- HttpHandlerActionCollection.cs
- CacheDict.cs
- UTF32Encoding.cs
- OutputCacheSection.cs
- StreamGeometryContext.cs
- ThemeInfoAttribute.cs
- ManagementQuery.cs
- JapaneseCalendar.cs
- DisableDpiAwarenessAttribute.cs
- HitTestDrawingContextWalker.cs
- xmlglyphRunInfo.cs
- PerspectiveCamera.cs
- LayoutEditorPart.cs
- HttpCachePolicyWrapper.cs
- AtomMaterializerLog.cs
- CodeNamespaceImportCollection.cs
- LookupBindingPropertiesAttribute.cs
- DataColumnChangeEvent.cs
- MetadataUtilsSmi.cs
- DrawTreeNodeEventArgs.cs
- TableCellCollection.cs
- Nullable.cs
- objectresult_tresulttype.cs
- HostedElements.cs
- Cursors.cs
- TransformerInfo.cs
- Line.cs
- BitmapImage.cs
- TreeNode.cs
- DoubleConverter.cs
- MessageQueue.cs
- ControlBindingsConverter.cs
- QilLiteral.cs
- JapaneseCalendar.cs
- UnauthorizedWebPart.cs
- SoapMessage.cs
- DefaultMemberAttribute.cs
- TextServicesCompartmentContext.cs
- SoundPlayer.cs
- SiteMapDataSourceView.cs
- DataViewListener.cs
- PaintValueEventArgs.cs
- StreamReader.cs
- Point.cs
- Msec.cs
- SystemDiagnosticsSection.cs
- AliasedExpr.cs
- DescendantQuery.cs
- InternalBufferOverflowException.cs
- TerminatorSinks.cs
- Resources.Designer.cs
- PointAnimationBase.cs
- Int64Storage.cs
- UpdateRecord.cs
- WebMessageEncodingBindingElement.cs
- PrimitiveSchema.cs
- WebPartTransformer.cs
- SHA384Managed.cs
- MarshalDirectiveException.cs
- TextAdaptor.cs
- CurrentChangingEventManager.cs
- GestureRecognizer.cs
- IntegerValidatorAttribute.cs
- InheritanceRules.cs
- StorageEndPropertyMapping.cs
- Monitor.cs
- ExpandCollapsePattern.cs
- PkcsUtils.cs
- COM2ExtendedBrowsingHandler.cs
- NumberFunctions.cs
- ProvideValueServiceProvider.cs
- XmlExceptionHelper.cs
- FixedTextPointer.cs
- NetworkInformationException.cs
- DoubleAnimation.cs
- TdsParserSafeHandles.cs
- FlowDocumentReader.cs
- ProvidersHelper.cs
- InkCanvasSelection.cs
- RandomNumberGenerator.cs
- _AutoWebProxyScriptEngine.cs
- ToolStripHighContrastRenderer.cs
- DocumentViewer.cs
- HTMLTagNameToTypeMapper.cs
- CombinedGeometry.cs
- EntityDataSourceChangedEventArgs.cs
- InternalDuplexChannelListener.cs
- SynchronizationContext.cs