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 / 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
- WindowsAuthenticationEventArgs.cs
- WorkflowRuntime.cs
- StdValidatorsAndConverters.cs
- OpenTypeLayout.cs
- TextTreeRootNode.cs
- SrgsNameValueTag.cs
- TextParentUndoUnit.cs
- SizeValueSerializer.cs
- TreeNodeCollection.cs
- StringToken.cs
- Vector3DKeyFrameCollection.cs
- AssemblyBuilder.cs
- Thumb.cs
- ClientCultureInfo.cs
- AutoCompleteStringCollection.cs
- ClipboardProcessor.cs
- SoapReflectionImporter.cs
- SectionInput.cs
- AspCompat.cs
- _StreamFramer.cs
- WindowsToolbarAsMenu.cs
- EntityDataSource.cs
- RuntimeIdentifierPropertyAttribute.cs
- AliasedSlot.cs
- StorageSetMapping.cs
- storepermission.cs
- DateTimeOffset.cs
- InvalidateEvent.cs
- ServiceDescription.cs
- PathSegment.cs
- RC2CryptoServiceProvider.cs
- DataListCommandEventArgs.cs
- DocumentXmlWriter.cs
- WindowsGraphicsCacheManager.cs
- SpecularMaterial.cs
- SHA256CryptoServiceProvider.cs
- SqlDataAdapter.cs
- BitmapDownload.cs
- SetterBase.cs
- Int32Rect.cs
- StorageEntitySetMapping.cs
- TemplatePropertyEntry.cs
- XmlElementAttribute.cs
- XmlCharCheckingWriter.cs
- CalloutQueueItem.cs
- XmlEncoding.cs
- GenericWebPart.cs
- HandlerFactoryWrapper.cs
- InertiaTranslationBehavior.cs
- ContentType.cs
- VisualCollection.cs
- HtmlTextBoxAdapter.cs
- UnsafeNetInfoNativeMethods.cs
- ZipIORawDataFileBlock.cs
- Attributes.cs
- SoapMessage.cs
- Wizard.cs
- TraceSection.cs
- CredentialCache.cs
- FolderBrowserDialog.cs
- IsolatedStorageFilePermission.cs
- Marshal.cs
- TextFragmentEngine.cs
- ipaddressinformationcollection.cs
- StateBag.cs
- CheckableControlBaseAdapter.cs
- Hex.cs
- DBSqlParserColumnCollection.cs
- PointAnimation.cs
- FixUp.cs
- DurableDispatcherAddressingFault.cs
- ProfilePropertyMetadata.cs
- WindowsIPAddress.cs
- TextTreeTextElementNode.cs
- FixedDocumentSequencePaginator.cs
- ActivityValidator.cs
- SafeReversePInvokeHandle.cs
- compensatingcollection.cs
- Baml6Assembly.cs
- FixedTextView.cs
- SqlClientFactory.cs
- DocumentOrderQuery.cs
- CngAlgorithmGroup.cs
- HealthMonitoringSectionHelper.cs
- SHA384Managed.cs
- PartialCachingControl.cs
- PersonalizationEntry.cs
- XsltOutput.cs
- base64Transforms.cs
- PointIndependentAnimationStorage.cs
- HtmlInputRadioButton.cs
- AsymmetricAlgorithm.cs
- FileUpload.cs
- ComponentConverter.cs
- MouseButton.cs
- DataControlFieldCollection.cs
- FullTextState.cs
- LinkUtilities.cs
- TransformValueSerializer.cs
- cookieexception.cs