Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / TextDecorationLocationValidation.cs / 1305600 / TextDecorationLocationValidation.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 IsTextDecorationLocationValid(object valueObject) { TextDecorationLocation value = (TextDecorationLocation) valueObject; return (value == TextDecorationLocation.Underline) || (value == TextDecorationLocation.OverLine) || (value == TextDecorationLocation.Strikethrough) || (value == TextDecorationLocation.Baseline); } } } // 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 IsTextDecorationLocationValid(object valueObject) { TextDecorationLocation value = (TextDecorationLocation) valueObject; return (value == TextDecorationLocation.Underline) || (value == TextDecorationLocation.OverLine) || (value == TextDecorationLocation.Strikethrough) || (value == TextDecorationLocation.Baseline); } } } // 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
- XamlUtilities.cs
- TypeElement.cs
- CodeSnippetStatement.cs
- TypeHelper.cs
- Exceptions.cs
- SizeAnimation.cs
- SecurityAttributeGenerationHelper.cs
- StdValidatorsAndConverters.cs
- CollectionsUtil.cs
- WebPartMovingEventArgs.cs
- UnionExpr.cs
- printdlgexmarshaler.cs
- FileStream.cs
- InlineUIContainer.cs
- ProtectedConfiguration.cs
- BmpBitmapEncoder.cs
- DataGridViewRowPrePaintEventArgs.cs
- Cursor.cs
- XmlEntityReference.cs
- ThemeInfoAttribute.cs
- RIPEMD160Managed.cs
- UrlParameterWriter.cs
- Serializer.cs
- CultureTableRecord.cs
- NullableIntMinMaxAggregationOperator.cs
- XmlSchemaSimpleContentRestriction.cs
- FixUp.cs
- WmlPageAdapter.cs
- StrokeNodeOperations2.cs
- ExpressionQuoter.cs
- DoubleLink.cs
- ValidationError.cs
- DbDataAdapter.cs
- BeginStoryboard.cs
- TTSVoice.cs
- SharedStatics.cs
- ToolStripItemTextRenderEventArgs.cs
- CustomAssemblyResolver.cs
- ToolboxBitmapAttribute.cs
- CompilationLock.cs
- WebPartRestoreVerb.cs
- AccessDataSourceView.cs
- DrawingAttributeSerializer.cs
- ImageAttributes.cs
- DoubleCollectionValueSerializer.cs
- regiisutil.cs
- APCustomTypeDescriptor.cs
- basevalidator.cs
- NavigationPropertyEmitter.cs
- MetadataArtifactLoaderComposite.cs
- PersistenceTypeAttribute.cs
- HatchBrush.cs
- ZoneLinkButton.cs
- ComNativeDescriptor.cs
- XPathBuilder.cs
- ContainerAction.cs
- X509CertificateCollection.cs
- DirectionalAction.cs
- CompareValidator.cs
- RuleSettingsCollection.cs
- TcpTransportElement.cs
- ToolStripHighContrastRenderer.cs
- TextTreeTextNode.cs
- ObjectStateManager.cs
- OutKeywords.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- CompensationTokenData.cs
- Debug.cs
- RequestCacheManager.cs
- KeyValueInternalCollection.cs
- PropertyMapper.cs
- Connector.xaml.cs
- DesignerCategoryAttribute.cs
- SoapServerProtocol.cs
- securitycriticaldataformultiplegetandset.cs
- CompilerParameters.cs
- XmlSchemas.cs
- NullRuntimeConfig.cs
- XamlHostingSection.cs
- TypeElement.cs
- CustomErrorCollection.cs
- ImageSource.cs
- SQLInt32Storage.cs
- MethodExpression.cs
- OleDbPropertySetGuid.cs
- DefaultTraceListener.cs
- BinaryObjectInfo.cs
- FieldDescriptor.cs
- UnSafeCharBuffer.cs
- EncoderBestFitFallback.cs
- ConfigurationStrings.cs
- FileVersionInfo.cs
- BinaryWriter.cs
- MetadataItemCollectionFactory.cs
- _AutoWebProxyScriptWrapper.cs
- AliasGenerator.cs
- AdjustableArrowCap.cs
- XmlLanguage.cs
- HierarchicalDataSourceConverter.cs
- CultureInfoConverter.cs