Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / TextDecorationLocationValidation.cs / 1 / 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
- DefaultAsyncDataDispatcher.cs
- RangeBase.cs
- MaskDesignerDialog.cs
- HttpServerUtilityWrapper.cs
- CharKeyFrameCollection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- LiteralDesigner.cs
- XmlDocument.cs
- ParamArrayAttribute.cs
- NTAccount.cs
- BooleanExpr.cs
- DragDeltaEventArgs.cs
- FormViewActionList.cs
- OAVariantLib.cs
- TransactionContext.cs
- ResourcePool.cs
- RouteValueExpressionBuilder.cs
- TransportConfigurationTypeElement.cs
- EdmSchemaAttribute.cs
- XmlnsDefinitionAttribute.cs
- DynamicActionMessageFilter.cs
- QilIterator.cs
- BinaryUtilClasses.cs
- WebChannelFactory.cs
- DecimalMinMaxAggregationOperator.cs
- ClientUrlResolverWrapper.cs
- Version.cs
- SettingsPropertyCollection.cs
- CompilerResults.cs
- streamingZipPartStream.cs
- InlineCategoriesDocument.cs
- ListControlBoundActionList.cs
- UrlPropertyAttribute.cs
- ListBoxItemWrapperAutomationPeer.cs
- LicenseException.cs
- PrintPreviewControl.cs
- SecurityTokenParametersEnumerable.cs
- QuaternionAnimationBase.cs
- XmlTextReaderImpl.cs
- DbTransaction.cs
- DbXmlEnabledProviderManifest.cs
- FormsAuthenticationCredentials.cs
- PeerApplication.cs
- ContentPlaceHolder.cs
- followingsibling.cs
- PrimarySelectionAdorner.cs
- JapaneseCalendar.cs
- EventWaitHandle.cs
- TextPattern.cs
- WebDescriptionAttribute.cs
- DataObjectMethodAttribute.cs
- RichTextBox.cs
- TokenBasedSetEnumerator.cs
- ColorConvertedBitmapExtension.cs
- CompressedStack.cs
- BoolExpr.cs
- SizeAnimationUsingKeyFrames.cs
- GenericTypeParameterConverter.cs
- DataGridViewAdvancedBorderStyle.cs
- EntityDataSourceContainerNameItem.cs
- InternalDispatchObject.cs
- CancellationTokenSource.cs
- MdbDataFileEditor.cs
- Aggregates.cs
- SHA1.cs
- DPTypeDescriptorContext.cs
- FontWeightConverter.cs
- SoapExtensionTypeElement.cs
- QuaternionAnimationBase.cs
- TextBox.cs
- SchemaElementDecl.cs
- Context.cs
- FieldNameLookup.cs
- ConnectionOrientedTransportManager.cs
- ChangePassword.cs
- CalendarButton.cs
- AssemblyAttributes.cs
- DataKeyCollection.cs
- ObjectSecurity.cs
- PrefixHandle.cs
- LookupNode.cs
- CompositeControl.cs
- ExceptionWrapper.cs
- XmlArrayItemAttribute.cs
- DirectoryObjectSecurity.cs
- Simplifier.cs
- ParameterBuilder.cs
- UnsignedPublishLicense.cs
- EdmFunctions.cs
- DesignerSerializationVisibilityAttribute.cs
- SharedStatics.cs
- CompilationLock.cs
- StartFileNameEditor.cs
- _PooledStream.cs
- FocusWithinProperty.cs
- TargetParameterCountException.cs
- Expression.cs
- DynamicQueryableWrapper.cs
- PropertyHelper.cs
- HtmlTitle.cs