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
- Console.cs
- AutomationPeer.cs
- DesignerTransactionCloseEvent.cs
- PageScaling.cs
- Highlights.cs
- XmlSchemaDocumentation.cs
- LambdaCompiler.Statements.cs
- OdbcConnection.cs
- XPathAncestorQuery.cs
- mediapermission.cs
- NavigationProperty.cs
- SystemException.cs
- NavigationExpr.cs
- HtmlInputPassword.cs
- Content.cs
- BeginStoryboard.cs
- ShapingEngine.cs
- TypeConverters.cs
- DataStreamFromComStream.cs
- ViewgenGatekeeper.cs
- ReflectTypeDescriptionProvider.cs
- SymbolType.cs
- BezierSegment.cs
- XmlElementAttribute.cs
- CommandID.cs
- As.cs
- RoleExceptions.cs
- CallbackHandler.cs
- FixedSOMContainer.cs
- MenuEventArgs.cs
- RegexNode.cs
- documentsequencetextcontainer.cs
- TextViewBase.cs
- BitmapEffectInput.cs
- DataGridViewSelectedRowCollection.cs
- ListViewGroupCollectionEditor.cs
- UnaryExpression.cs
- IndexedString.cs
- RichTextBoxConstants.cs
- GetPolicyDetailsRequest.cs
- XPathNode.cs
- ParallelTimeline.cs
- SQLGuid.cs
- FontCacheUtil.cs
- ContourSegment.cs
- BindingFormattingDialog.cs
- ExpressionQuoter.cs
- HashRepartitionEnumerator.cs
- SmtpTransport.cs
- HttpRequestTraceRecord.cs
- TriggerAction.cs
- _SslStream.cs
- MimeObjectFactory.cs
- EntityDataSourceSelectedEventArgs.cs
- ExtensionSimplifierMarkupObject.cs
- CreateParams.cs
- CultureSpecificCharacterBufferRange.cs
- EventProperty.cs
- SearchForVirtualItemEventArgs.cs
- SingleResultAttribute.cs
- SelectionPattern.cs
- Cursor.cs
- BindUriHelper.cs
- IInstanceTable.cs
- PersistChildrenAttribute.cs
- DataKey.cs
- ListViewInsertedEventArgs.cs
- unsafeIndexingFilterStream.cs
- CLSCompliantAttribute.cs
- Trace.cs
- ToolstripProfessionalRenderer.cs
- PointCollection.cs
- PropertySourceInfo.cs
- TextReturnReader.cs
- ScopelessEnumAttribute.cs
- DateTimeStorage.cs
- SqlDataSourceQueryConverter.cs
- DesignOnlyAttribute.cs
- RequestQueue.cs
- NavigatorInput.cs
- SafeNativeMethods.cs
- SettingsPropertyCollection.cs
- ProxyWebPart.cs
- KeyManager.cs
- RtfControlWordInfo.cs
- BamlLocalizableResourceKey.cs
- TextContainerChangeEventArgs.cs
- FullTextLine.cs
- DesignSurface.cs
- XmlBindingWorker.cs
- BinaryUtilClasses.cs
- HiddenFieldPageStatePersister.cs
- SQLMoneyStorage.cs
- GenericTypeParameterBuilder.cs
- GenerateScriptTypeAttribute.cs
- CultureInfo.cs
- SuppressMessageAttribute.cs
- SelectorItemAutomationPeer.cs
- ImageEditor.cs
- WorkflowDataContext.cs