Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / TextDecorationUnitValidation.cs / 1 / TextDecorationUnitValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // 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
- SoapParser.cs
- ErrorHandler.cs
- BindingExpression.cs
- RegistrySecurity.cs
- TargetConverter.cs
- TypeDescriptionProvider.cs
- SubqueryRules.cs
- BitmapVisualManager.cs
- SBCSCodePageEncoding.cs
- PrefixHandle.cs
- CacheHelper.cs
- TaskExceptionHolder.cs
- HtmlInputPassword.cs
- IWorkflowDebuggerService.cs
- TypeInfo.cs
- HttpProcessUtility.cs
- InfiniteTimeSpanConverter.cs
- SplitterPanel.cs
- DataGridTableCollection.cs
- followingsibling.cs
- _RequestCacheProtocol.cs
- ToolboxComponentsCreatedEventArgs.cs
- Resources.Designer.cs
- COM2ColorConverter.cs
- PageThemeParser.cs
- IntellisenseTextBox.cs
- EditorBrowsableAttribute.cs
- DefaultBindingPropertyAttribute.cs
- GPPOINT.cs
- FixedElement.cs
- PassportAuthenticationModule.cs
- ValuePatternIdentifiers.cs
- DataGridViewColumnConverter.cs
- SafeRightsManagementEnvironmentHandle.cs
- WindowsListViewGroup.cs
- AuthorizationRule.cs
- BufferedGraphicsManager.cs
- AttributeCollection.cs
- ScriptRegistrationManager.cs
- ConfigurationCollectionAttribute.cs
- XPathItem.cs
- CapiSymmetricAlgorithm.cs
- PageRouteHandler.cs
- CommandManager.cs
- SharingService.cs
- CreateParams.cs
- storepermission.cs
- ScrollChangedEventArgs.cs
- Transaction.cs
- ErrorReporting.cs
- Latin1Encoding.cs
- ConnectionConsumerAttribute.cs
- EndpointInfo.cs
- AdRotator.cs
- XappLauncher.cs
- WebPartZoneBase.cs
- FormsAuthenticationConfiguration.cs
- RelationshipConverter.cs
- ResourcesBuildProvider.cs
- SafeEventLogReadHandle.cs
- Overlapped.cs
- TextBox.cs
- XmlUrlEditor.cs
- ConcurrentDictionary.cs
- SqlGenericUtil.cs
- VirtualPath.cs
- MouseBinding.cs
- TextServicesContext.cs
- ComplusTypeValidator.cs
- LongValidatorAttribute.cs
- RequiredFieldValidator.cs
- _emptywebproxy.cs
- TextMarkerSource.cs
- basemetadatamappingvisitor.cs
- WindowsRichEdit.cs
- CustomLineCap.cs
- TimersDescriptionAttribute.cs
- FileNotFoundException.cs
- PropertyToken.cs
- autovalidator.cs
- DropDownButton.cs
- DocumentViewerHelper.cs
- EventHandlersStore.cs
- GeometryValueSerializer.cs
- StringDictionaryEditor.cs
- XmlDocument.cs
- LayoutInformation.cs
- HtmlTernaryTree.cs
- XmlSecureResolver.cs
- WebScriptEndpointElement.cs
- DateTimeUtil.cs
- Events.cs
- X509CertificateValidator.cs
- List.cs
- Encoder.cs
- BypassElement.cs
- PolyLineSegment.cs
- ObjectNotFoundException.cs
- ZoneMembershipCondition.cs
- DbConnectionStringBuilder.cs