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
- MobileUserControl.cs
- Vector.cs
- ParallelEnumerableWrapper.cs
- Debug.cs
- SecUtil.cs
- DataServiceHostFactory.cs
- iisPickupDirectory.cs
- EpmContentSerializer.cs
- DesignerToolStripControlHost.cs
- ToolTipService.cs
- wmiutil.cs
- PrintPreviewGraphics.cs
- DefaultTraceListener.cs
- IItemContainerGenerator.cs
- DataGridViewTopLeftHeaderCell.cs
- RtfToken.cs
- DependencyPropertyChangedEventArgs.cs
- ObjectDisposedException.cs
- MarkedHighlightComponent.cs
- EnvironmentPermission.cs
- XPathConvert.cs
- WebReferencesBuildProvider.cs
- IntSecurity.cs
- TabItemWrapperAutomationPeer.cs
- Stream.cs
- FileVersionInfo.cs
- ArraySubsetEnumerator.cs
- MulticastNotSupportedException.cs
- SelectedPathEditor.cs
- DesignerSerializerAttribute.cs
- QueryGeneratorBase.cs
- FileVersionInfo.cs
- ToolStrip.cs
- ClientApiGenerator.cs
- OdbcConnection.cs
- XmlNamespaceManager.cs
- Privilege.cs
- AmbientLight.cs
- ListBindingConverter.cs
- DataGridCommandEventArgs.cs
- ZoomComboBox.cs
- SByte.cs
- SimpleFieldTemplateFactory.cs
- ActivityValidator.cs
- PerformanceCounter.cs
- Attributes.cs
- PeerApplication.cs
- AccessControlList.cs
- SymmetricAlgorithm.cs
- SqlDelegatedTransaction.cs
- DataGridViewToolTip.cs
- ApplicationDirectoryMembershipCondition.cs
- TypeInfo.cs
- DrawingImage.cs
- BitmapEffect.cs
- ProjectionPathSegment.cs
- DBSqlParser.cs
- DbParameterCollectionHelper.cs
- ReferencedAssembly.cs
- TextViewBase.cs
- MessageFormatterConverter.cs
- TransformValueSerializer.cs
- XhtmlConformanceSection.cs
- OuterGlowBitmapEffect.cs
- SqlTriggerAttribute.cs
- MarshalByValueComponent.cs
- BuilderInfo.cs
- GridViewCellAutomationPeer.cs
- InheritanceAttribute.cs
- SessionStateModule.cs
- PropertyChangingEventArgs.cs
- InputScope.cs
- Schema.cs
- DrawingState.cs
- CompressEmulationStream.cs
- HtmlHead.cs
- IdnMapping.cs
- FontCacheUtil.cs
- Highlights.cs
- WindowsAuthenticationEventArgs.cs
- TemplateKeyConverter.cs
- DashStyle.cs
- WrapPanel.cs
- Merger.cs
- TimeIntervalCollection.cs
- AutomationPropertyChangedEventArgs.cs
- SponsorHelper.cs
- UnsafeNativeMethods.cs
- FormViewUpdateEventArgs.cs
- ThreadExceptionDialog.cs
- XmlDocumentFragment.cs
- InternalControlCollection.cs
- MimeBasePart.cs
- CodePageEncoding.cs
- StructuredProperty.cs
- HebrewNumber.cs
- Point3DAnimationUsingKeyFrames.cs
- ClonableStack.cs
- GridViewUpdatedEventArgs.cs
- BindingContext.cs