Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- TableHeaderCell.cs
- StyleSelector.cs
- PartialList.cs
- ParameterBuilder.cs
- RequestQueryProcessor.cs
- Membership.cs
- TrackingProfile.cs
- Italic.cs
- ConfigXmlText.cs
- PlatformCulture.cs
- EntityDataSourceStatementEditorForm.cs
- EntityModelSchemaGenerator.cs
- XhtmlBasicPanelAdapter.cs
- AttributeSetAction.cs
- prefixendpointaddressmessagefiltertable.cs
- FormsAuthentication.cs
- WebSysDefaultValueAttribute.cs
- ImageList.cs
- HttpHandler.cs
- XmlDesigner.cs
- ProcessStartInfo.cs
- DesignerOptionService.cs
- FixedPageStructure.cs
- XmlArrayAttribute.cs
- QuaternionAnimation.cs
- XmlMemberMapping.cs
- TransactedBatchingBehavior.cs
- PKCS1MaskGenerationMethod.cs
- Parallel.cs
- ResourceExpression.cs
- Schema.cs
- SafeEventLogWriteHandle.cs
- RC2CryptoServiceProvider.cs
- FileEnumerator.cs
- RightsManagementInformation.cs
- AddressAccessDeniedException.cs
- FileChangesMonitor.cs
- OleDbConnection.cs
- returneventsaver.cs
- PrefixQName.cs
- ActivationServices.cs
- TreeNodeEventArgs.cs
- baseshape.cs
- CodeCommentStatementCollection.cs
- GradientSpreadMethodValidation.cs
- PerfCounters.cs
- ProxyWebPartManager.cs
- EntityClientCacheEntry.cs
- Boolean.cs
- messageonlyhwndwrapper.cs
- HandleCollector.cs
- Pool.cs
- WorkflowWebService.cs
- Package.cs
- SQLDecimalStorage.cs
- EventsTab.cs
- CssClassPropertyAttribute.cs
- PersonalizationState.cs
- ReferentialConstraintRoleElement.cs
- LogEntrySerializationException.cs
- Regex.cs
- TextEndOfSegment.cs
- HashMembershipCondition.cs
- TimeSpanStorage.cs
- ProfileEventArgs.cs
- StructuredTypeEmitter.cs
- MimeAnyImporter.cs
- AppliedDeviceFiltersEditor.cs
- HttpProcessUtility.cs
- FramingChannels.cs
- UIElementIsland.cs
- BindingExpressionUncommonField.cs
- documentsequencetextcontainer.cs
- TableLayoutColumnStyleCollection.cs
- ScrollBarRenderer.cs
- DataGridViewCellStyle.cs
- DependencyStoreSurrogate.cs
- X509Certificate2.cs
- embossbitmapeffect.cs
- ApplicationServiceManager.cs
- DataColumnCollection.cs
- WindowsFormsLinkLabel.cs
- SelfIssuedSamlTokenFactory.cs
- Pair.cs
- Configuration.cs
- IApplicationTrustManager.cs
- DoubleAnimationClockResource.cs
- WindowsRichEdit.cs
- BypassElementCollection.cs
- TraceHwndHost.cs
- TextSchema.cs
- LinqDataSourceStatusEventArgs.cs
- DetailsViewPagerRow.cs
- BackStopAuthenticationModule.cs
- PenCursorManager.cs
- SQLRoleProvider.cs
- GrammarBuilderDictation.cs
- ISO2022Encoding.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- SchemaCollectionCompiler.cs