Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- TaskResultSetter.cs
- CredentialCache.cs
- SafeCancelMibChangeNotify.cs
- NoClickablePointException.cs
- ClientBuildManagerCallback.cs
- DataServiceQueryOfT.cs
- PropertyMapper.cs
- IntSumAggregationOperator.cs
- SingleAnimationBase.cs
- MapPathBasedVirtualPathProvider.cs
- OleStrCAMarshaler.cs
- SqlBulkCopyColumnMapping.cs
- MessageAction.cs
- CodeExpressionStatement.cs
- InputBuffer.cs
- MenuEventArgs.cs
- ProcessHostServerConfig.cs
- MethodRental.cs
- GrammarBuilderPhrase.cs
- SynchronizedInputAdaptor.cs
- DataSet.cs
- ScriptManagerProxy.cs
- CapabilitiesPattern.cs
- RoleService.cs
- Opcode.cs
- ProfileEventArgs.cs
- SmtpDigestAuthenticationModule.cs
- ClickablePoint.cs
- UTF7Encoding.cs
- EmbeddedMailObjectCollectionEditor.cs
- UIPropertyMetadata.cs
- DSASignatureFormatter.cs
- WebControlParameterProxy.cs
- SqlDataSourceStatusEventArgs.cs
- Preprocessor.cs
- Utils.cs
- Simplifier.cs
- PrivateFontCollection.cs
- WorkflowElementDialog.cs
- GPPOINTF.cs
- FormsAuthenticationModule.cs
- FileInfo.cs
- PointAnimationUsingPath.cs
- PagePropertiesChangingEventArgs.cs
- TreeViewItem.cs
- ImageBrush.cs
- MediaScriptCommandRoutedEventArgs.cs
- OfTypeExpression.cs
- ResourceIDHelper.cs
- CompilationRelaxations.cs
- DbParameterHelper.cs
- DesignerAdapterAttribute.cs
- SizeAnimationUsingKeyFrames.cs
- TimeoutValidationAttribute.cs
- SerializationAttributes.cs
- SerializerDescriptor.cs
- SecurityPermission.cs
- cookieexception.cs
- FormViewUpdateEventArgs.cs
- ToolboxItem.cs
- BinaryFormatter.cs
- CancelEventArgs.cs
- StructureChangedEventArgs.cs
- DecoderExceptionFallback.cs
- CodeExpressionCollection.cs
- StringCollection.cs
- BindingListCollectionView.cs
- HealthMonitoringSection.cs
- SqlGenericUtil.cs
- Listener.cs
- DateTimeOffsetStorage.cs
- UserControlFileEditor.cs
- AnnotationAdorner.cs
- DeploymentSection.cs
- GradientBrush.cs
- DesignerSerializationOptionsAttribute.cs
- DataGridBoolColumn.cs
- ClientScriptItemCollection.cs
- StringResourceManager.cs
- ComponentChangedEvent.cs
- Pen.cs
- SuppressIldasmAttribute.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- Paragraph.cs
- RpcCryptoRequest.cs
- ContainerFilterService.cs
- TemplatePartAttribute.cs
- DocumentXmlWriter.cs
- TileBrush.cs
- AssemblyAttributes.cs
- TypographyProperties.cs
- ValidationSummary.cs
- WebPartRestoreVerb.cs
- Attributes.cs
- HwndProxyElementProvider.cs
- InstanceKeyNotReadyException.cs
- ExtentJoinTreeNode.cs
- Ref.cs
- CultureInfoConverter.cs
- AppModelKnownContentFactory.cs