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
- ColorAnimation.cs
- ConfigurationElementProperty.cs
- MdiWindowListStrip.cs
- DockingAttribute.cs
- CodeIndexerExpression.cs
- IpcClientManager.cs
- EllipticalNodeOperations.cs
- UserThread.cs
- SubpageParagraph.cs
- MediaScriptCommandRoutedEventArgs.cs
- JsonReaderDelegator.cs
- BlockCollection.cs
- ResourceExpressionEditor.cs
- Slider.cs
- ThemeInfoAttribute.cs
- Quad.cs
- PenContexts.cs
- Point3DIndependentAnimationStorage.cs
- TextServicesCompartmentEventSink.cs
- GridViewAutomationPeer.cs
- Events.cs
- Speller.cs
- HttpWriter.cs
- DispatcherProcessingDisabled.cs
- QfeChecker.cs
- SignerInfo.cs
- MetadataExporter.cs
- Base64Stream.cs
- BindableAttribute.cs
- XmlSchemaObjectCollection.cs
- InputProcessorProfilesLoader.cs
- TTSEngineTypes.cs
- WebPartManagerInternals.cs
- EventSinkHelperWriter.cs
- CompilerResults.cs
- EncryptedPackage.cs
- AutomationIdentifierGuids.cs
- DataGrid.cs
- safex509handles.cs
- TextEditorTables.cs
- DataGridViewMethods.cs
- KeyedHashAlgorithm.cs
- recordstate.cs
- OrCondition.cs
- WsdlParser.cs
- DataPagerField.cs
- WebBrowser.cs
- HttpListenerContext.cs
- UIElementAutomationPeer.cs
- IPipelineRuntime.cs
- FirstMatchCodeGroup.cs
- MetadataCache.cs
- AnchoredBlock.cs
- DataGridViewTopRowAccessibleObject.cs
- LocalizableResourceBuilder.cs
- XmlSchemaElement.cs
- SmtpTransport.cs
- Main.cs
- UpdateEventArgs.cs
- MappingException.cs
- ServiceHttpModule.cs
- StringWriter.cs
- SystemIPGlobalProperties.cs
- SemanticResultValue.cs
- MexHttpsBindingElement.cs
- VirtualizedCellInfoCollection.cs
- ToolTipService.cs
- PerformanceCounterScope.cs
- DispatcherExceptionFilterEventArgs.cs
- SerializerWriterEventHandlers.cs
- ResolveCriteriaCD1.cs
- LinearKeyFrames.cs
- GradientStopCollection.cs
- PerformanceCounterPermissionAttribute.cs
- SystemIPv6InterfaceProperties.cs
- FontClient.cs
- QilReference.cs
- DrawItemEvent.cs
- Debug.cs
- CodeSnippetStatement.cs
- NegationPusher.cs
- AffineTransform3D.cs
- ResXFileRef.cs
- ConfigPathUtility.cs
- ToolStripContentPanelDesigner.cs
- XmlValidatingReader.cs
- StreamUpdate.cs
- RuntimeArgumentHandle.cs
- FlowSwitch.cs
- ComponentEditorPage.cs
- ParameterToken.cs
- DifferencingCollection.cs
- UnitySerializationHolder.cs
- ApplicationBuildProvider.cs
- HttpCachePolicy.cs
- TableItemStyle.cs
- IdentityNotMappedException.cs
- BindingMemberInfo.cs
- Visual3D.cs
- HashMembershipCondition.cs