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
- StateWorkerRequest.cs
- ScanQueryOperator.cs
- DesignerEditorPartChrome.cs
- FormViewPageEventArgs.cs
- CollectionChange.cs
- updatecommandorderer.cs
- ImportOptions.cs
- MetabaseServerConfig.cs
- MDIWindowDialog.cs
- NodeFunctions.cs
- LowerCaseStringConverter.cs
- WindowsTitleBar.cs
- TableRowCollection.cs
- PenContexts.cs
- DateTimeValueSerializerContext.cs
- KeyInstance.cs
- ImplicitInputBrush.cs
- ReflectionTypeLoadException.cs
- WebBaseEventKeyComparer.cs
- FileDialog.cs
- SmtpMail.cs
- GenericAuthenticationEventArgs.cs
- Oid.cs
- ScrollProviderWrapper.cs
- AtomServiceDocumentSerializer.cs
- UnregisterInfo.cs
- NetPipeSection.cs
- DeclarativeCatalogPart.cs
- MailMessage.cs
- PointCollectionConverter.cs
- Section.cs
- DPCustomTypeDescriptor.cs
- RepeatInfo.cs
- DataControlLinkButton.cs
- Matrix3D.cs
- SqlProcedureAttribute.cs
- SqlNotificationEventArgs.cs
- PathData.cs
- ViewGenerator.cs
- TextPatternIdentifiers.cs
- GridViewAutoFormat.cs
- XhtmlBasicPageAdapter.cs
- PreloadedPackages.cs
- XamlToRtfWriter.cs
- CompModSwitches.cs
- TextRange.cs
- InternalMappingException.cs
- ExceptionUtil.cs
- FunctionCommandText.cs
- ArrangedElementCollection.cs
- SelectionProcessor.cs
- RightNameExpirationInfoPair.cs
- GraphicsContext.cs
- DateTimeConstantAttribute.cs
- TypeConverterHelper.cs
- graph.cs
- UnsafeNativeMethods.cs
- CodeTypeReferenceCollection.cs
- NamespaceCollection.cs
- BindingBase.cs
- SequenceQuery.cs
- ChannelAcceptor.cs
- SimpleApplicationHost.cs
- StringResourceManager.cs
- ScriptResourceInfo.cs
- EdmMember.cs
- ReflectionUtil.cs
- DependencyPropertyConverter.cs
- ActiveXHelper.cs
- ErrorWrapper.cs
- GroupBox.cs
- DataPointer.cs
- precedingsibling.cs
- RTLAwareMessageBox.cs
- ObjectQueryExecutionPlan.cs
- XmlAggregates.cs
- PointLight.cs
- OletxDependentTransaction.cs
- ModuleBuilderData.cs
- EmptyImpersonationContext.cs
- ObjectToken.cs
- PageWrapper.cs
- CoTaskMemHandle.cs
- BuildProvider.cs
- DetailsViewCommandEventArgs.cs
- WrapperSecurityCommunicationObject.cs
- GiveFeedbackEvent.cs
- CommentEmitter.cs
- ItemCheckEvent.cs
- CustomWebEventKey.cs
- TextBlockAutomationPeer.cs
- SystemResourceKey.cs
- NamespaceList.cs
- XPathAxisIterator.cs
- ResourceAttributes.cs
- TypeListConverter.cs
- SolidColorBrush.cs
- Util.cs
- TrustManagerPromptUI.cs
- GridLength.cs