Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / WinCategoryAttribute.cs / 1305376 / 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 [....] 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Grant.cs
- ObservableCollection.cs
- NodeFunctions.cs
- SimpleRecyclingCache.cs
- DbException.cs
- ContextMenu.cs
- UnsafeNativeMethodsMilCoreApi.cs
- XmlStringTable.cs
- NonClientArea.cs
- ProtocolsSection.cs
- SubMenuStyleCollectionEditor.cs
- InputProcessorProfilesLoader.cs
- ComponentSerializationService.cs
- PageThemeParser.cs
- Vector3DCollection.cs
- PropertyRecord.cs
- CodeEntryPointMethod.cs
- StylusPointPropertyId.cs
- ComponentConverter.cs
- StaticExtensionConverter.cs
- CodePageUtils.cs
- ControlUtil.cs
- IdleTimeoutMonitor.cs
- ServiceHostingEnvironmentSection.cs
- ConsoleCancelEventArgs.cs
- ZipArchive.cs
- RawKeyboardInputReport.cs
- TextServicesHost.cs
- Link.cs
- OdbcConnectionHandle.cs
- RelativeSource.cs
- StyleXamlParser.cs
- CaseInsensitiveHashCodeProvider.cs
- Misc.cs
- ImplicitInputBrush.cs
- DockPanel.cs
- SqlConnectionManager.cs
- SqlRowUpdatingEvent.cs
- CodeAttributeArgument.cs
- SerialPinChanges.cs
- ControlParameter.cs
- NumberSubstitution.cs
- cryptoapiTransform.cs
- ToolStripSeparator.cs
- TakeOrSkipQueryOperator.cs
- XmlExpressionDumper.cs
- ProtocolsInstallComponent.cs
- ToolStripMenuItem.cs
- NumericUpDown.cs
- PermissionSet.cs
- SequentialOutput.cs
- WebAdminConfigurationHelper.cs
- ButtonPopupAdapter.cs
- PerfCounters.cs
- RegexStringValidator.cs
- PolicyAssertionCollection.cs
- ByteStreamGeometryContext.cs
- AuthenticationModuleElement.cs
- Ref.cs
- TextViewBase.cs
- CustomTypeDescriptor.cs
- ReadOnlyDictionary.cs
- ByteAnimationBase.cs
- WebControlToolBoxItem.cs
- Parallel.cs
- OleDbEnumerator.cs
- MessageQueueConverter.cs
- WSFederationHttpSecurityElement.cs
- Converter.cs
- BufferAllocator.cs
- InteropBitmapSource.cs
- ParentQuery.cs
- SqlClientWrapperSmiStreamChars.cs
- XmlSortKeyAccumulator.cs
- DebugView.cs
- TagPrefixAttribute.cs
- WindowsFormsLinkLabel.cs
- TypeExtension.cs
- FlagsAttribute.cs
- FontDialog.cs
- TrustManager.cs
- DropShadowEffect.cs
- OleStrCAMarshaler.cs
- TypeSystemHelpers.cs
- FillBehavior.cs
- ResourceReader.cs
- RegexStringValidator.cs
- BamlRecords.cs
- SplayTreeNode.cs
- TraceContext.cs
- PeerMessageDispatcher.cs
- SystemThemeKey.cs
- GenericsInstances.cs
- SynchronizationContextHelper.cs
- SkipStoryboardToFill.cs
- Facet.cs
- AppDomainProtocolHandler.cs
- Expression.cs
- DataGridDetailsPresenter.cs
- basevalidator.cs