Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / TextDecorationUnitValidation.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BufferedGraphicsManager.cs
- KeySplineConverter.cs
- MultiplexingDispatchMessageFormatter.cs
- MasterPageBuildProvider.cs
- ErrorActivity.cs
- ServiceProviders.cs
- CodeGenerator.cs
- XpsFilter.cs
- UserControlBuildProvider.cs
- TailCallAnalyzer.cs
- TransformerTypeCollection.cs
- HttpCapabilitiesBase.cs
- IdentifierCreationService.cs
- EmptyReadOnlyDictionaryInternal.cs
- TraceHandlerErrorFormatter.cs
- NavigationProperty.cs
- QuaternionRotation3D.cs
- XmlAnyElementAttribute.cs
- HGlobalSafeHandle.cs
- ConfigXmlWhitespace.cs
- Transform3D.cs
- CommonGetThemePartSize.cs
- GcSettings.cs
- CellParagraph.cs
- ComPlusDiagnosticTraceRecords.cs
- WindowsListBox.cs
- ExpressionBinding.cs
- ResourceProviderFactory.cs
- CleanUpVirtualizedItemEventArgs.cs
- LingerOption.cs
- ToolTipService.cs
- FaultException.cs
- EntityDataSourceWrapperCollection.cs
- PersonalizationAdministration.cs
- SqlStream.cs
- SmtpCommands.cs
- loginstatus.cs
- StrokeIntersection.cs
- WebHeaderCollection.cs
- WebPartDescriptionCollection.cs
- RangeBase.cs
- Publisher.cs
- SiteMapProvider.cs
- UniqueEventHelper.cs
- X509Utils.cs
- mediapermission.cs
- MenuItemStyle.cs
- VBCodeProvider.cs
- WebPartZoneAutoFormat.cs
- EdmType.cs
- TypeContext.cs
- DateTimeConstantAttribute.cs
- DoWorkEventArgs.cs
- DesignerImageAdapter.cs
- MenuItem.cs
- SqlMethods.cs
- Oci.cs
- MexNamedPipeBindingElement.cs
- ThreadExceptionDialog.cs
- ColorTransformHelper.cs
- TextBlock.cs
- DbCommandTree.cs
- SignedXml.cs
- PageTheme.cs
- HostingEnvironmentSection.cs
- SqlServices.cs
- ListManagerBindingsCollection.cs
- QilFactory.cs
- EntityClassGenerator.cs
- EntityDesignPluralizationHandler.cs
- PreDigestedSignedInfo.cs
- XPathNavigatorKeyComparer.cs
- PrePostDescendentsWalker.cs
- PenContext.cs
- ScrollChrome.cs
- IndexedEnumerable.cs
- ApplicationTrust.cs
- CodeArrayCreateExpression.cs
- DefaultMemberAttribute.cs
- DiscreteKeyFrames.cs
- NotifyParentPropertyAttribute.cs
- StrongNameKeyPair.cs
- RectAnimationBase.cs
- DurableInstanceManager.cs
- ContentPlaceHolderDesigner.cs
- Dump.cs
- SourceSwitch.cs
- TextServicesCompartment.cs
- XsltContext.cs
- CodeDefaultValueExpression.cs
- KerberosSecurityTokenAuthenticator.cs
- TagPrefixAttribute.cs
- HopperCache.cs
- Win32Native.cs
- DataColumnChangeEvent.cs
- CompareInfo.cs
- ConnectionsZone.cs
- TextTreeNode.cs
- TimelineGroup.cs
- LayoutEvent.cs