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
- TargetFrameworkUtil.cs
- AmbientValueAttribute.cs
- ControlHelper.cs
- ProxyGenerator.cs
- AnyReturnReader.cs
- TypeBuilderInstantiation.cs
- PartManifestEntry.cs
- SqlDataReader.cs
- DataGridViewCellStyleChangedEventArgs.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- NodeCounter.cs
- QueryOutputWriter.cs
- DispatcherEventArgs.cs
- FrameworkName.cs
- SqlVisitor.cs
- PageContentAsyncResult.cs
- CacheOutputQuery.cs
- FontWeights.cs
- RSACryptoServiceProvider.cs
- CultureInfo.cs
- ProtocolsConfigurationEntry.cs
- HtmlToClrEventProxy.cs
- TransactionScopeDesigner.cs
- cache.cs
- UnsafeNativeMethods.cs
- WebPartCloseVerb.cs
- XmlHierarchicalDataSourceView.cs
- TcpTransportSecurityElement.cs
- CodeDomConfigurationHandler.cs
- ServerValidateEventArgs.cs
- ImageBrush.cs
- EntityObject.cs
- Update.cs
- UnsafePeerToPeerMethods.cs
- ListViewItemSelectionChangedEvent.cs
- ToolStripRendererSwitcher.cs
- TiffBitmapDecoder.cs
- EventLogPermissionHolder.cs
- DeploymentSection.cs
- LinkedResourceCollection.cs
- RadioButtonRenderer.cs
- SpeechUI.cs
- LambdaValue.cs
- OrderedDictionary.cs
- MethodSet.cs
- DesignBindingConverter.cs
- SrgsToken.cs
- SchemaObjectWriter.cs
- ToolStripPanel.cs
- AbstractExpressions.cs
- ClientConfigurationSystem.cs
- SqlInternalConnectionTds.cs
- ContextTokenTypeConverter.cs
- LogicalExpr.cs
- WS2007HttpBindingElement.cs
- SecurityHeaderTokenResolver.cs
- PaginationProgressEventArgs.cs
- WebDisplayNameAttribute.cs
- SqlFacetAttribute.cs
- SQLInt64.cs
- DesignerDataTableBase.cs
- NamespaceQuery.cs
- LongValidatorAttribute.cs
- RequestResizeEvent.cs
- ConfigurationStrings.cs
- DataControlPagerLinkButton.cs
- VScrollBar.cs
- CodeStatementCollection.cs
- VirtualDirectoryMapping.cs
- RC2.cs
- MemoryMappedView.cs
- Exception.cs
- OperationPerformanceCounters.cs
- OdbcErrorCollection.cs
- ObjectListSelectEventArgs.cs
- PkcsMisc.cs
- TakeQueryOptionExpression.cs
- KeyEventArgs.cs
- XmlAutoDetectWriter.cs
- ExpressionPrefixAttribute.cs
- Int16AnimationBase.cs
- InternalResources.cs
- ContentDisposition.cs
- NavigationProgressEventArgs.cs
- BaseCollection.cs
- XpsFontSubsetter.cs
- DefaultSerializationProviderAttribute.cs
- SecurityRuntime.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- GPStream.cs
- WmpBitmapDecoder.cs
- ConvertersCollection.cs
- BindingsCollection.cs
- GridViewColumnHeaderAutomationPeer.cs
- DelegatingChannelListener.cs
- BitConverter.cs
- EventLogEntryCollection.cs
- DbResourceAllocator.cs
- HeaderUtility.cs
- SpellerError.cs