Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Localizer.cs
- RuntimeIdentifierPropertyAttribute.cs
- UnsafeNativeMethods.cs
- PassportAuthentication.cs
- SendKeys.cs
- LocationReferenceValue.cs
- EventLogger.cs
- ProcessHostMapPath.cs
- UnsafeNetInfoNativeMethods.cs
- AuthenticationServiceManager.cs
- BinaryWriter.cs
- PersonalizationProviderCollection.cs
- MetadataFile.cs
- RequestSecurityTokenResponseCollection.cs
- TypeLibConverter.cs
- DiagnosticTrace.cs
- DiscriminatorMap.cs
- ExcludePathInfo.cs
- LiteralTextParser.cs
- StreamReader.cs
- basenumberconverter.cs
- XmlSerializationGeneratedCode.cs
- SystemBrushes.cs
- InkCanvasSelectionAdorner.cs
- SystemTcpConnection.cs
- CodeLinePragma.cs
- UTF32Encoding.cs
- Matrix.cs
- ViewGenerator.cs
- QilValidationVisitor.cs
- Deflater.cs
- CapabilitiesSection.cs
- PageSettings.cs
- GenerateScriptTypeAttribute.cs
- LockingPersistenceProvider.cs
- AnnotationObservableCollection.cs
- ConfigurationSection.cs
- TypedColumnHandler.cs
- ProcessModelSection.cs
- RoamingStoreFile.cs
- SetterBase.cs
- HtmlInputImage.cs
- HttpAsyncResult.cs
- CharacterBufferReference.cs
- WebPartHelpVerb.cs
- ExpressionVisitor.cs
- ComAwareEventInfo.cs
- VolatileEnlistmentMultiplexing.cs
- Debug.cs
- AttributeSetAction.cs
- VisualBasicExpressionConverter.cs
- AnonymousIdentificationSection.cs
- ProfileParameter.cs
- CqlWriter.cs
- CultureInfo.cs
- ResourceKey.cs
- StandardCommands.cs
- BitmapEffectrendercontext.cs
- DeobfuscatingStream.cs
- DataGridParentRows.cs
- EntityModelBuildProvider.cs
- TextInfo.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- PropertyOverridesDialog.cs
- Slider.cs
- MaskedTextProvider.cs
- IsolatedStorageSecurityState.cs
- BamlRecordHelper.cs
- TreeNodeStyle.cs
- SQLConvert.cs
- ElementNotAvailableException.cs
- XmlAttributeProperties.cs
- FileDialogCustomPlacesCollection.cs
- MimeTypeAttribute.cs
- DependencyPropertyDescriptor.cs
- TrackingStringDictionary.cs
- DataList.cs
- UnauthorizedWebPart.cs
- DataGridViewRowsRemovedEventArgs.cs
- CodeDirectoryCompiler.cs
- HttpApplication.cs
- CssTextWriter.cs
- PolicyManager.cs
- GuidConverter.cs
- DesignerVerbCollection.cs
- XmlCollation.cs
- HwndAppCommandInputProvider.cs
- ZipIOCentralDirectoryBlock.cs
- DataGridViewUtilities.cs
- EventPropertyMap.cs
- SingleAnimationBase.cs
- StatusBar.cs
- Error.cs
- _BufferOffsetSize.cs
- GridViewColumnHeader.cs
- GeometryModel3D.cs
- userdatakeys.cs
- RelationshipEndMember.cs
- BrowserCapabilitiesFactory.cs
- DashStyle.cs