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
- sqlser.cs
- XmlDocumentViewSchema.cs
- MatrixCamera.cs
- webclient.cs
- DataPointer.cs
- SchemaType.cs
- ResourceDefaultValueAttribute.cs
- HttpClientCertificate.cs
- RawTextInputReport.cs
- AttachedAnnotation.cs
- PrivilegeNotHeldException.cs
- XmlReaderSettings.cs
- PolicyLevel.cs
- DllNotFoundException.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- MessageQueueInstaller.cs
- FilteredReadOnlyMetadataCollection.cs
- AdapterDictionary.cs
- Underline.cs
- XmlProcessingInstruction.cs
- OpenFileDialog.cs
- ExpressionParser.cs
- TreeNodeCollection.cs
- DesignSurfaceManager.cs
- MatrixUtil.cs
- SoapServerProtocol.cs
- Codec.cs
- Command.cs
- EntityClientCacheKey.cs
- DeclarativeCatalogPart.cs
- JavaScriptObjectDeserializer.cs
- BindableAttribute.cs
- ProfileModule.cs
- SafeTokenHandle.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- ComplexLine.cs
- TranslateTransform.cs
- StringArrayConverter.cs
- LightweightEntityWrapper.cs
- WebGetAttribute.cs
- WebExceptionStatus.cs
- ScriptComponentDescriptor.cs
- FileEnumerator.cs
- Tuple.cs
- MessageQueuePermission.cs
- InputLanguage.cs
- MutexSecurity.cs
- CodeIterationStatement.cs
- VersionConverter.cs
- DataGridViewCellValueEventArgs.cs
- InheritanceAttribute.cs
- ReadOnlyCollectionBase.cs
- EventBuilder.cs
- UnauthorizedWebPart.cs
- ReachFixedDocumentSerializer.cs
- WebPageTraceListener.cs
- PingReply.cs
- Label.cs
- PageClientProxyGenerator.cs
- DiffuseMaterial.cs
- XmlNamespaceManager.cs
- TablePattern.cs
- CodeNamespaceImport.cs
- ExceptionRoutedEventArgs.cs
- loginstatus.cs
- IdleTimeoutMonitor.cs
- PagesSection.cs
- __Filters.cs
- ObjectContextServiceProvider.cs
- UriTemplateVariableQueryValue.cs
- EmptyStringExpandableObjectConverter.cs
- CompiledRegexRunnerFactory.cs
- WindowsContainer.cs
- SimpleTextLine.cs
- WaitHandle.cs
- SessionStateSection.cs
- PrincipalPermission.cs
- ColumnReorderedEventArgs.cs
- ClipboardProcessor.cs
- GraphicsContainer.cs
- EnumBuilder.cs
- ToolboxItemFilterAttribute.cs
- WebHeaderCollection.cs
- GradientStopCollection.cs
- SelectionHighlightInfo.cs
- TreeNode.cs
- HtmlInputFile.cs
- SiteOfOriginPart.cs
- TypeConstant.cs
- ListParaClient.cs
- XmlAttributeHolder.cs
- RepeatBehaviorConverter.cs
- DataListItemEventArgs.cs
- DataGridViewElement.cs
- LogLogRecordHeader.cs
- SHA384.cs
- Pkcs7Signer.cs
- _KerberosClient.cs
- PropertyPathWorker.cs
- OwnerDrawPropertyBag.cs