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
- BezierSegment.cs
- ModelFunctionTypeElement.cs
- ResourcesGenerator.cs
- FieldToken.cs
- LineBreakRecord.cs
- TrackBar.cs
- MexHttpsBindingCollectionElement.cs
- XmlTextEncoder.cs
- ToolStripDesignerUtils.cs
- _FtpDataStream.cs
- WebPartVerbsEventArgs.cs
- LongTypeConverter.cs
- Control.cs
- BamlTreeMap.cs
- CompilerResults.cs
- Oci.cs
- InternalBufferOverflowException.cs
- CaseInsensitiveComparer.cs
- TdsParameterSetter.cs
- SchemaHelper.cs
- ConnectionStringsSection.cs
- DrawingContextDrawingContextWalker.cs
- DataBindingList.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- MessageQueueConverter.cs
- AcceleratedTokenAuthenticator.cs
- DataGridColumn.cs
- RegexWorker.cs
- TextControl.cs
- XmlSchemaAnnotation.cs
- EdmRelationshipRoleAttribute.cs
- PriorityBindingExpression.cs
- InputMethodStateChangeEventArgs.cs
- ObjectNavigationPropertyMapping.cs
- DispatcherTimer.cs
- SafeNativeMethodsMilCoreApi.cs
- SafeCertificateStore.cs
- DialogResultConverter.cs
- RowSpanVector.cs
- XmlSchemaImporter.cs
- PrintPreviewGraphics.cs
- SafeProcessHandle.cs
- DataGridViewCellStateChangedEventArgs.cs
- NativeMethods.cs
- Message.cs
- TdsValueSetter.cs
- ServiceNotStartedException.cs
- PointConverter.cs
- QilFactory.cs
- ValidatedControlConverter.cs
- SqlCacheDependency.cs
- MailHeaderInfo.cs
- FileLevelControlBuilderAttribute.cs
- RepeaterCommandEventArgs.cs
- ManagedWndProcTracker.cs
- ButtonAutomationPeer.cs
- StandardCommands.cs
- NGCSerializerAsync.cs
- ObjRef.cs
- HwndProxyElementProvider.cs
- WebPartMinimizeVerb.cs
- CSharpCodeProvider.cs
- WebPartAddingEventArgs.cs
- DesignerTextWriter.cs
- CngKeyBlobFormat.cs
- NativeMethodsCLR.cs
- PersistNameAttribute.cs
- HyperLinkColumn.cs
- XPathPatternBuilder.cs
- DataSysAttribute.cs
- CollectionViewGroupRoot.cs
- FunctionCommandText.cs
- PersonalizationAdministration.cs
- SoapReflectionImporter.cs
- TreeNode.cs
- InternalsVisibleToAttribute.cs
- TextRangeEditTables.cs
- Socket.cs
- WMIInterop.cs
- RelationshipConverter.cs
- DataBindingExpressionBuilder.cs
- ImportContext.cs
- MenuItemStyleCollection.cs
- PackWebResponse.cs
- SvcMapFileSerializer.cs
- GridViewColumnCollectionChangedEventArgs.cs
- AutomationAttributeInfo.cs
- TextRangeBase.cs
- RequestBringIntoViewEventArgs.cs
- BrowserCapabilitiesFactoryBase.cs
- InputProviderSite.cs
- WrapPanel.cs
- InputScopeConverter.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- ErrorTableItemStyle.cs
- KeyPressEvent.cs
- SortKey.cs
- SpanIndex.cs
- ProcessingInstructionAction.cs
- DebugTraceHelper.cs