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
- SecurityTokenContainer.cs
- glyphs.cs
- GridView.cs
- PixelShader.cs
- XmlAutoDetectWriter.cs
- DbSetClause.cs
- SqlRewriteScalarSubqueries.cs
- UserPersonalizationStateInfo.cs
- InkCollectionBehavior.cs
- DesignTimeHTMLTextWriter.cs
- SplitterPanelDesigner.cs
- RelationshipDetailsCollection.cs
- SendKeys.cs
- SynthesizerStateChangedEventArgs.cs
- ProcessThreadCollection.cs
- FlowchartStart.xaml.cs
- PathSegment.cs
- ScheduleChanges.cs
- embossbitmapeffect.cs
- SspiSafeHandles.cs
- QilTargetType.cs
- OracleCommandBuilder.cs
- DecimalConverter.cs
- Pool.cs
- IRCollection.cs
- RemoteWebConfigurationHostStream.cs
- BuilderInfo.cs
- InkCanvas.cs
- SimpleWebHandlerParser.cs
- HandleCollector.cs
- TypeUtils.cs
- xml.cs
- HostingEnvironmentSection.cs
- PickBranchDesigner.xaml.cs
- ToolConsole.cs
- ThreadInterruptedException.cs
- QueryAsyncResult.cs
- DataKey.cs
- MemberAssignment.cs
- safelink.cs
- HwndSourceKeyboardInputSite.cs
- COM2PictureConverter.cs
- SessionIDManager.cs
- _LoggingObject.cs
- Events.cs
- ReadContentAsBinaryHelper.cs
- PrintDialogException.cs
- AlphaSortedEnumConverter.cs
- SoapReflectionImporter.cs
- AuthenticationModulesSection.cs
- BaseConfigurationRecord.cs
- WorkflowRuntimeServiceElementCollection.cs
- WindowsGraphicsWrapper.cs
- OleDbStruct.cs
- ParserHooks.cs
- PathData.cs
- RTLAwareMessageBox.cs
- WebEvents.cs
- Visitor.cs
- ErrorFormatterPage.cs
- InterleavedZipPartStream.cs
- ConfigUtil.cs
- FilteredReadOnlyMetadataCollection.cs
- BindingBase.cs
- Util.cs
- GorillaCodec.cs
- SecurityHelper.cs
- BasicKeyConstraint.cs
- DataGridViewUtilities.cs
- OdbcException.cs
- ExpandableObjectConverter.cs
- propertytag.cs
- HttpListener.cs
- FaultCode.cs
- GridViewCommandEventArgs.cs
- MsmqChannelListenerBase.cs
- VisemeEventArgs.cs
- ChildTable.cs
- TrustManagerMoreInformation.cs
- BindingMemberInfo.cs
- DataSourceCollectionBase.cs
- LinkConverter.cs
- Pointer.cs
- ObjectStateManagerMetadata.cs
- BufferedWebEventProvider.cs
- SequenceDesigner.cs
- OSEnvironmentHelper.cs
- ExceptionValidationRule.cs
- ServiceThrottlingElement.cs
- NetworkAddressChange.cs
- DataGridViewCheckBoxCell.cs
- WrapPanel.cs
- HwndKeyboardInputProvider.cs
- StaticSiteMapProvider.cs
- GenericAuthenticationEventArgs.cs
- MsmqBindingBase.cs
- XMLDiffLoader.cs
- BaseDataListActionList.cs
- BuildProviderAppliesToAttribute.cs
- ExpressionBuilderCollection.cs