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
- BaseCAMarshaler.cs
- SerializationHelper.cs
- WebControlAdapter.cs
- GeometryCombineModeValidation.cs
- BindingBase.cs
- GlobalProxySelection.cs
- CustomTrackingQuery.cs
- Cursors.cs
- DataGrid.cs
- DecoderBestFitFallback.cs
- FormatConvertedBitmap.cs
- CuspData.cs
- DateTimeOffsetStorage.cs
- AdapterDictionary.cs
- AutoCompleteStringCollection.cs
- Light.cs
- ObjectAssociationEndMapping.cs
- _DynamicWinsockMethods.cs
- RequestBringIntoViewEventArgs.cs
- SrgsNameValueTag.cs
- TraceHandler.cs
- TextParagraphProperties.cs
- KeyValueConfigurationElement.cs
- SqlDataSource.cs
- TimeSpanValidatorAttribute.cs
- NaturalLanguageHyphenator.cs
- DefaultExpression.cs
- UnmanagedBitmapWrapper.cs
- Vector3DCollection.cs
- FocusManager.cs
- RecordConverter.cs
- LocalValueEnumerator.cs
- SoapAttributeAttribute.cs
- ClipboardData.cs
- _KerberosClient.cs
- XmlSchemaSimpleContent.cs
- OleDbPermission.cs
- Pair.cs
- ThousandthOfEmRealDoubles.cs
- ContentFileHelper.cs
- AccessKeyManager.cs
- TreeWalker.cs
- sqlstateclientmanager.cs
- Point3DValueSerializer.cs
- SponsorHelper.cs
- ResourceIDHelper.cs
- ControlDesignerState.cs
- XmlRootAttribute.cs
- GridItemPatternIdentifiers.cs
- TabControlAutomationPeer.cs
- SafeCancelMibChangeNotify.cs
- IItemContainerGenerator.cs
- CustomError.cs
- PropertyChangedEventArgs.cs
- XmlSchemaAnnotated.cs
- Encoder.cs
- AliasedExpr.cs
- TableCell.cs
- ItemsControlAutomationPeer.cs
- DbConvert.cs
- ISAPIWorkerRequest.cs
- TickBar.cs
- UpDownBase.cs
- ComboBoxAutomationPeer.cs
- BlockExpression.cs
- TaskFormBase.cs
- HandlerMappingMemo.cs
- UIntPtr.cs
- IgnoreFileBuildProvider.cs
- LockedBorderGlyph.cs
- SByte.cs
- MailMessage.cs
- DiscoveryInnerClientAdhoc11.cs
- DateTimePicker.cs
- TdsParserSessionPool.cs
- GridViewSortEventArgs.cs
- ArrowControl.xaml.cs
- TransformDescriptor.cs
- DefaultValidator.cs
- tibetanshape.cs
- LongMinMaxAggregationOperator.cs
- Container.cs
- XmlSchemaValidator.cs
- DataGridItemCollection.cs
- PathHelper.cs
- DataBinder.cs
- SmiXetterAccessMap.cs
- Keyboard.cs
- LoginView.cs
- InputManager.cs
- RegexParser.cs
- GroupPartitionExpr.cs
- DBSqlParserTableCollection.cs
- ScriptingSectionGroup.cs
- PolicyStatement.cs
- GridViewSortEventArgs.cs
- DefaultTextStore.cs
- SevenBitStream.cs
- ResponseStream.cs
- MetadataArtifactLoaderComposite.cs